View Full Version : Ext.PagingToolbar problem !

18 Jan 2011, 7:21 AM
My understanding from "Ext.PagingToolbar" is that :
this component gets a Url and retrieves all the data available on the server side.and then splits the data into pages
set by "pageSize:" and makes it available to user.

please correct me if I'm wrong up to here!

I have a web Service that provides the list for me, and this service is designed so that it gets two parameters as input (start and limit),this way the paging is done by server.

the problem is that if I'm gonna use the "Ext.PagingToolbar", the way it is,I will have to set
start =0 and limit =AllrecordsCount and this is not what I'm looking for...

I'm sure there must be a better way to do this,but I don't know how!

thanks for any suggestions.

18 Jan 2011, 7:41 AM
You are wrong.

The normal behavior is that Ext sends the 'start' and 'limit' parameters to the server and the server is expected to return only the records for that page + the total number of records.

So Ext already does what you are looking for!

ps. I you actually wanted to retrieve all records and display them in pages then you would need to use my PagingStore user extension.