PDA

View Full Version : Grid pagination issue



babai
20 Jul 2010, 4:04 AM
Hi,

I am using a service call to fetch JSON data for grid. It supports start and limit but does not return the totalproperty. Though it returns a flag 'MoreDataFlagString' with values 'Y' or 'N'. 'Y' denotes more rows yet to come and 'N' denotes the end of file.
Now please let me know how can I configure my page tool bar to work with this.
I do not need to show the total number of pages.

Thanks

Condor
20 Jul 2010, 4:19 AM
1. In the paging toolbar specify a displayMsg and a afterPageText that don't include the number of records/pages and hide the 'last' button.
2. Create a fake totalProperty that contains start+limit if MoreDataFlagString='N' and start+limit+1 if MoreDataFlagString='Y'.