Unanswered: Using ExtJs, a problem occurred when xml data received and paging
Unanswered: Using ExtJs, a problem occurred when xml data received and paging
Hi, all
Using ExtJs, I m testing to transfer received xml data to specific grid.
I made a simple text file which has 10 output values , and set pageSize to 5 from paging toolbar.
That is, the desired output for 10 values could be 5 values on each pages(2 pages).
It divided to 2 pages correctly, however there are 10 same values on each pages.
What is the cause for above problem?
I hope your comments will be possible solutions.
Thank you!
////////////////////////////////////////////////////////////////////////////
test
////////////////////////////////////////////////////////////////////////////
Ext.onReady(function(){
var mm = Ext.data.Record.create([
{name: 'mb_id'},
{name: 'mb_sex'},
{name: 'mb_name'}
]);
var store = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({
url:'./data.php'
}),
Please post in the correct forum. Your question appears to be about ExtJS 3, not ExtJS 4.
Paging must be implemented server-side. Setting the pageSize will not chunk up the data into pages for you.
There are 3 parameters on the request (page, start and limit) that you can use to determine which results to return. There is some overlap in these 3 parameters, just use whichever combination suits your use case.