Hello, we are using ListGrid that connects to the server using an xml datasource. During the server-side sorting ListGrid seems to include all the previous criteria that the current data has been retrieved with, as well as new criteria (which specifies the sorting column and value). Is there a way to control this and prevent inlcuding some of the original criteria? Thank you.
Announcement
Collapse
No announcement yet.
X
-
I think I actually want the original criteria to be dropped when user clicks sorting arrows, and would like only the sorting criteria to be sent.
The reason is that we already generated cached data that just needs to be re-sorted, and the original criteria is telling our server side to re-generate the data. So I want to drop criteria to avoid re-generation of data.
Comment
-
OK, you definitely do not want the grid, DataSource or any other SmartGWT layer to believe that the criteria has gone away, because it basically hasn't. Instead, you should be solving this server-side, probably by realizing that the submitted criteria match the criteria that were used to obtain the cache.
But note, this level of caching is something ResultSet does automatically (see the docs for ResultSet for details), so it's unclear why you'd be implementing a second cache server-side.
Comment
Comment