Hi,
Can you give a brief overview of how to implement a grid that uses paging? I reviewed the Docs and see that there are some properties labeled as “paging” properties on the DSRequest and DSResponse objects. So, I understand how those properties assist in passing paging parameters from SmartClient to the server and to the Database.
However, how does paging work client-side? For instance, I haven’t seen any paging widgets in your examples? If a user wants to navigate through several thousand records, I’d like to give them the ability to use the classic “first”, “previous”, “next”, “last” options to page through data as opposed to forcing them to use the scrollbar to view such a high quantity of data.
Hi senordhuff,
The paging interface used by many websites, that is, providing a series of links to view more data, really evolved because, previous to AJAX, scrollbar-based paging wasn’t really possible 
However, if you want to build an interface in that style, the general recommendation would be:
- directly create a ResultSet bound to your DataSource
- also create a ListGrid bound to your DataSource, but don’t call fetchData() on it.
- use getRange() calls on the ResultSet to fetch pages of data as normal Arrays, and hand them to the ListGrid via setData()
Make sense?
Hi, I will try that approach. Thanks.
For the sake or argument, I would say that the classic paging model evolved because it’s also a user friendly way to allow someone to view large sets of data. So, while you are right that scrollbar-based paging wasn’t possible before Ajax, I’d still argue the overall user experience of presenting small chunks of data is still valid even with Ajax. For that reason, I think it would be worthwhile if SmartClient had native functionality for this type of paging. I am going to add it to your Wishlist as well.