I am working on a Client-Side paging grid (ServerOperation(false)) where I need to manually update the page size when a new row has been added using the grid's dataSource.insert() method. The reason for this is because I want to have the new record visible as well as any other existing records on the grid on the same page.
I am updating the page size using the following code when a new record is added:
Unfortunately, the above code does not work for Client-Side paging but it works on Server-side paging.
Any assistance would be very welcome.
I am updating the page size using the following code when a new record is added:
var
grid = $(
"#myGrid"
).data(
"kendoGrid"
);
var
currentPageSize = grid.dataSource.pageSize();
grid.dataSource.pageSize(++currentPageSize);
grid.refresh();
Unfortunately, the above code does not work for Client-Side paging but it works on Server-side paging.
Any assistance would be very welcome.