umut
13 Jul 2007, 1:58 PM
I have the following toolbar:
var pagbar = new Ext.PagingToolbar(gridFoot, ds, {
pageSize: 25,
displayInfo: true,
displayMsg: "Showing {0} - {1} of {2}"
});
...
some other code
...
ds.load({params:{start:0, limit:25}});
But I receive the message(in one page):
Showing 1 - 146 of 1
Instead of (for the first page):
Showing 1 - 25 of 146
It also kills the paging, so all the records are shown at one page; which in turn increases the load time dramatically.
I think the problem is at "{2}" variable but I don't know how to fix it. Any ideas?
var pagbar = new Ext.PagingToolbar(gridFoot, ds, {
pageSize: 25,
displayInfo: true,
displayMsg: "Showing {0} - {1} of {2}"
});
...
some other code
...
ds.load({params:{start:0, limit:25}});
But I receive the message(in one page):
Showing 1 - 146 of 1
Instead of (for the first page):
Showing 1 - 25 of 146
It also kills the paging, so all the records are shown at one page; which in turn increases the load time dramatically.
I think the problem is at "{2}" variable but I don't know how to fix it. Any ideas?