I want to have a "reset" button that sets all filters to blank and removes all rows from the grid, without calling the server. I thought it would be able to do this by just saying:
grid.dataSource.data(new Array());
But this seems to mess up the paging. The records are cleared, but when I reload the grid with new data, it keeps the old page number, even if that was greater than the current max pages, leaving the user with a blank grid.
Is there a recognized way to clear out a grid?