PDA

View Full Version : Feature Request: PagingToolBar with no totalResults



oninga
13 Jul 2009, 11:02 PM
The standard PagingToolBar doesn't work nicely when the server doesn't return totalResults. Sometimes the dataset on the server is so large that you don't won't to count a total for some grids - fx in our case counting total for some queries is 3-4 times as expensive as returning fx 100 rows and the total isn't really needed.
We have modified PagingToolBar to work without a total - by removing the 'last' button and the 'afterText' and modifing the displayText to only show "Displaying {0}-{1}".
The PagingToolBar also doen't update text tooltips and 'beforePage' when setMessages is called - this has been fixed aswell. A modified version with these changes has been attached to the post.

Regards
Nino