I added a new column to my grid but it's not showing up because I'm using the setOptions method along with localStorage to save the grid options and it must be overriding the grid columns. How can I reset/clear localStorage so that the grid gets updated properly in the browser? Here is the relevant JS code:
$(function () {
var grid = $("#reviewsGrid").data("kendoGrid");
var options = localStorage["pat-sessions-options"];
if (options) {
var parsedOptions = JSON.parse(options);
parsedOptions.toolbar = [
{ template: $("#toolbarTemplate").html() }
];
parsedOptions.columns[0].headerTemplate = $("#emptyHeaderTemplate").html();
grid.setOptions(parsedOptions);
}
});
function onDataBoundPATItems(e) {
var grid = $("#reviewsGrid").data("kendoGrid");
localStorage["pat-sessions-options"] = kendo.stringify(grid.getOptions());
}