Hi,
I have a listgrid that gets populated with data from a RestDataSource with setShowFilterEditor=true, setFilterOnKeypress=true and setCanFilter=true for each of the list grid fields in the listgrid.
I would like the filtering to work on the subset of data initially fetched from the datasource, effectively making it a 'client only filtering'. Is there any setting or tweak to achieve this?
The behavior I saw in SmartGWT 2.4 is sometimes it will fire a DSRequest to the ResetDataSource with filtering criteria (server side filtering?) and sometimes it won't. And it is typically the first time when the filter editor get changed it will fire DSRequest. I couldn't figure out the pattern behind when it decides to go to server side and when it decides to apply filter only to data at client side. I also noticed setting setUseClientFiltering to false will always fire DSRequest, but setting setUseClientFiltering to true does not guarantee client side filtering every time.
Appreciate any feedback, thanks.
I have a listgrid that gets populated with data from a RestDataSource with setShowFilterEditor=true, setFilterOnKeypress=true and setCanFilter=true for each of the list grid fields in the listgrid.
I would like the filtering to work on the subset of data initially fetched from the datasource, effectively making it a 'client only filtering'. Is there any setting or tweak to achieve this?
The behavior I saw in SmartGWT 2.4 is sometimes it will fire a DSRequest to the ResetDataSource with filtering criteria (server side filtering?) and sometimes it won't. And it is typically the first time when the filter editor get changed it will fire DSRequest. I couldn't figure out the pattern behind when it decides to go to server side and when it decides to apply filter only to data at client side. I also noticed setting setUseClientFiltering to false will always fire DSRequest, but setting setUseClientFiltering to true does not guarantee client side filtering every time.
Appreciate any feedback, thanks.
Comment