matjaz
24 Jun 2007, 9:07 AM
Hello !
I have a PagingToolbar which is added to grids header panel.
When I call Store with params I get NaN for number current page and number of records.
var params = {};
if (..) {
params.meta = 1;
}
var ds = ... Store(...);
ds.load({params: params});
When the store is loaded I get NaN.
After some debugging I came to this line in PagingToolbar.onLoad()
this.cursor = o.params ? o.params.start : 0;
Where code automatically assumes if params are defined then start param was specified.
Which I understand as a bug.
I have a PagingToolbar which is added to grids header panel.
When I call Store with params I get NaN for number current page and number of records.
var params = {};
if (..) {
params.meta = 1;
}
var ds = ... Store(...);
ds.load({params: params});
When the store is loaded I get NaN.
After some debugging I came to this line in PagingToolbar.onLoad()
this.cursor = o.params ? o.params.start : 0;
Where code automatically assumes if params are defined then start param was specified.
Which I understand as a bug.