This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
How can I have the grid play well with server side paging. That is, I'd like to tell the grid "the data source will only serve 100 records at a time, as well as the total count of records". With the information the grid would request the first 100 records, render them in the grid, and use the count to adjust the scroll bar. As the user scrolls down, the grid would request another 100 records... as needed. Also, if the data is real time, it'd be nice to also get notifications when a page is not needed anymore, so that I stop updating with real time data. This is different from requesting all the records and then handling paging in memory, which I've already done with your grid and works well. Thanks, Nestor |
|
|
Hello Nestor I have not tried this before, but you should be able to implement a custom collection to provide this data-virtualization. The Count property is used by the data grid to work out the scroll bar size. When items are requested near the end or start of a block of 100 records that haven't been downloaded yet, query the server to get the records, and store them in an array (or whatever you use to implement the collection) ready to be displayed. Filtering, grouping and sorting will be very tricky without having all records though. Let me know how you get along with this. -Jason Fauchelle |
|