Hi,
I want to change the filtering mode from local to remote based on the total number of records using jquery.
eg: If I have 10000 records then it should be 'remote' otherwise it should be 'local'
If I try to change the setting during rendering time by using
$("#grid").igGridFiltering("option", "type", "remote");
it throws error as like below
"Unhandled exception at line 215, column 10752 in http://localhost:62273/igniteui/js/infragistics.lob.js
0x800a139e - JavaScript runtime error: Changing the following option after the igGrid has been created is not supported: type"
Please help me to resolve this.
Hello Mohamed,
Thank you for posting in our community.
The reason why you have this exception message is that changing filtering type during runtime is not supported. This option should be set initially and could not be changed afterwards.
Please let me know if you have any additional questions regarding this matter.
Please let me know if you need any further assistance with this matter.
Thanks Vasya, I have a requirement to change the type from local to remote based on the record count. Can you please tell me any other way to achieve it?eg:
If the returned data is less than 50,000 -- filter type - Local
If the returned data is more than 50,000 -- filter type - Remote
Thank you for getting back to me.
As stated in my previous post type option of the Filtering feature could not be changed runtime. It should be set initially and could not be changed afterwards.
Please let me know if I can provide you any further assistance with this matter.
If I can provide you any further assistance please feel free to contact me.