Hello Pietervk,
This is not correct – “$(‘.jqxgridEx’).source = dataAdapterEx;” if you want to change the source you could follow the approach presented in this topic:
https://www.jqwidgets.com/community/topic/update-grid-source/
If you want to change the data you should make changes to the source object (the example below is for localdata but you could use the same approach for url
): http://jsfiddle.net/jqwidgets/dRbAE/
The good practice is to use the ID selector when create a widget – $('#grid').jqxGrid({ ... });
The Grid should be initialized just once and if you make some transformations they should be out of some functions that are used for initialization. If you use many
The adding filter programmatically cannot be wrong if you have correct created filter
callback in the DataAdapter’s source.
You could check this after you use addfilter
method in your case it should invoke the “filter” callback and there run .jqxGrid('updatebounddata', 'filter');
row.
Thank you for your suggestion.
Best Regards,
Hristo Hristov
jQWidgets team
http://www.jqwidgets.com