var
grid = $(ViewModel.gridName()).data(
"kendoGrid"
);
//Reset all existing sorts/filters first. If the persisted view didn't have them set, the
//existing state and persisted state are merged.
grid.dataSource.sort({});
grid.dataSource.filter({});
grid.setOptions(JSON.parse(targetView.GridOptions()));
I'm using the setOptions method to restore the state previously obtained from grid.getOptions(). My data is small enough that I load it completely client side. When I call set options, the grid reloads the data from the server. It works fine, but it's unnecessary.
Is there an option to avoid reloading the data from the server after setOptions is called?