I'm using several ListGrids with pagination turned on, and regular filters and sorts work fine. The problem is that I need to do further checks on the server to determine whether the current user is allowed to see each row in the query results. Is there a recommended strategy for handing pagination in the ListGrid when the server may remove/hide individual record(s) from a query?
Right now I seem to be able to:
1) Send back an empty/placeholder record for each one that the user shouldn't see. Extra rows with empty content don't look very good for the user.
2) Completely remove the hidden records from the data, which looks fine but causes startRow/endRow to get out of sync between client/server.
The datasets may be large, where it wouldn't be easy to get a complete dataset up front instead of paging through it.
Thanks for any assistance.
SmartGWT v9.0p_2013-08-02/LGPL Development Only (built 2013-08-02), using Chrome
Right now I seem to be able to:
1) Send back an empty/placeholder record for each one that the user shouldn't see. Extra rows with empty content don't look very good for the user.
2) Completely remove the hidden records from the data, which looks fine but causes startRow/endRow to get out of sync between client/server.
The datasets may be large, where it wouldn't be easy to get a complete dataset up front instead of paging through it.
Thanks for any assistance.
SmartGWT v9.0p_2013-08-02/LGPL Development Only (built 2013-08-02), using Chrome
Comment