Hi,
I am using a Paging Toolbar to manage paging for a grid.
When the grid is empty, the the toolbar shows "Page 1 of 0".
Is it possible to manage it in a way to either show "Page 0 of 0" or "Page 1 of 1" when the grid is empty?
Printable View
Hi,
I am using a Paging Toolbar to manage paging for a grid.
When the grid is empty, the the toolbar shows "Page 1 of 0".
Is it possible to manage it in a way to either show "Page 0 of 0" or "Page 1 of 1" when the grid is empty?
I am using the following code to change the value in the input field on store load
However the field doesn't seem to be changing.Code:var onload = function (store) {
if (store.count() == 0) {
App.pagingToolbar.getInputItem().enable();
App.pagingToolbar.getInputItem().setRawValue(0);
App.pagingToolbar.getInputItem().setValue(0);
App.pagingToolbar.getInputItem().disable();
}
}
It seems that there was another function that was executing which caused the value to return to its original.
A simple Delay="1" on the event made it work.
This thread can be closed.Code:
<Listeners>
<Load Fn="onload" Delay="1"></Load>
</Listeners>