I am saving the state of a grid as per the docs:
var grid = $("#deficiencyGrid").data("kendoGrid");
vm.grid.state = kendo.stringify(grid.getOptions());
However, it is saving the datasource with the state. If I then add a new item and come back to the grid and restore the state any new items dont appear. I have tried setting the datasource like:
var grid = $("#deficiencyGrid").data("kendoGrid");
var options = JSON.parse(vm.gridViews[i].state);
options.dataSource = vm.deficiencies;
options.dataBound = onDataBound;
grid.setOptions(options);
but this then seems to overwrite the entire state as none of the filters are applied etc..
How do I achieve what I am looking for?