SmartgGWT - 3.0p Pro
We are using a ListGrid which uses a ServerDataSource. Currently the Grid fetches data from the server. And when we enter data in the Filter and hit enter it makes a server request and returns the filtered dataset.
We are trying to return all data and do client side filtering. For the we did the following
On the datasource
On the ServerDataSource
So this is to indicate that all rows have been returned.
We also tried in the above code to setEndRow(-1) based on some post in the forum.
In this case we expected that when we enter a value in the filter and enter the filtering would be done client side and not send a requet back the server datasource. This does not happen and always send request back to the server datasource. Is there anyway we can make the filtering to be done on the data on the client.
We are using a ListGrid which uses a ServerDataSource. Currently the Grid fetches data from the server. And when we enter data in the Filter and hit enter it makes a server request and returns the filtered dataset.
We are trying to return all data and do client side filtering. For the we did the following
On the datasource
Code:
containeeDS.setAutoCacheAllData(true);
Code:
DSResponse dsResponse = new DSResponse(); dsResponse.setTotalRows(list.size()); dsResponse.setStartRow(0); dsResponse.setEndRow(list.size()); dsResponse.setData(list); return dsResponse;
We also tried in the above code to setEndRow(-1) based on some post in the forum.
In this case we expected that when we enter a value in the filter and enter the filtering would be done client side and not send a requet back the server datasource. This does not happen and always send request back to the server datasource. Is there anyway we can make the filtering to be done on the data on the client.
Comment