PDA

View Full Version : grid: page count asynchronously delivered



jdaum
3 Jul 2007, 3:34 PM
Hi,

I would like to speed up a grid based on a reasonably complex query by calculating the page count in a separate result. BAsically I want to deliver the first 20 results and after that is done, deliver the number of rows in a separate request.

Is there a standard way to approach something like this?

Thanks for any pointer,

Jochen

tryanDLS
3 Jul 2007, 4:00 PM
There is no builtin way to do it. You could return a bogus value in totalProperty to setup the paging toolbar. Then after you make the count request, you have to manually update the toolbar. You'll have to look at the source of PagingToolbar to determine how to update the values.