PDA

View Full Version : Help in managing very LONG data list



franzfume
2 Mar 2012, 12:16 AM
I have to develop a procedure in Sencha Touch. I need to load in a viewport a very long list of data, the datastore is originated from a PHP-SQL server.
Because the flow of data can be very very long..,.. I need a simple way to "paginate" the result in my procedure.
Ther's a way to "precount" (not load) the whole data and show the data in part (20 or 30 at a time) and let sencha load the remaining just scrolling the field ? (I mean load automatically the subsequantial part of the data?)
Thanks

mitchellsimoens
2 Mar 2012, 9:10 AM
Paging needs to happen server side.

franzfume
2 Mar 2012, 10:26 AM
Ok tanks..but can I have some sort of "more info" about the way to do that? Maybe some example code to take a look and show to the admin that manage the DB?
thanks

mitchellsimoens
2 Mar 2012, 10:32 AM
Checkout the request, it has some params for paging by default. You also have loadPage method on Ext.data.Store and also ListPaging plugin.