We have a grid configured with the "all" page size in the options:
this
.gridOptions.pageable = <kendo.ui.GridPageable>{
input:
true
,
numeric:
false
,
pageSizes: [
"all"
, 5, 10, 20, 50],
refresh:
true
};
When we programmatically refresh the grids datasource (below), and that refresh pulls in an additional item to display in the grid, the pager in the grid is no longer what we'd expect.
this
.manageGridDataSource.read();
If the grid had 9 items before, the pager now shows 9, and the new item is now on page two. I understand that the "all" selection just sets the pageSize to the total number of items in the datasource, but what we want to happen is that after the refresh, the "all" setting is preserved and the additional grid item displays on the first page, not generate a second page of data.
Do you know how this can be achieved?