i have kendo grid on page and i want to preserve filter states throught application..i have done that by using cookies..i am getting cookie values as
"{"filter":{"filters":[{"field":"assign_by","operator":"contains","value":"o"},{"field":"assign_by","operator":"contains","value":"k"}],"logic":"or"}}"
but how to reapply these filter values to grid
//storing cookies on other function
function valuechange(){
var dataSource = gview.dataSource;
gridfilter = kendo.stringify({
filter: dataSource.filter()
});
$.cookie("gridState", gridfilter);
}
//retriving cookies
function dataBound(e) {
var scrollVal = $("#scrollVal").val();
var gview = $("#grid").data("kendoGrid");
gview.content.scrollTop(scrollVal);
if ($.cookie('gridState')) {
var gridState = unescape(document.cookie);
var filtergrid = gridState.split("=");
var filtergridval = filtergrid[1];
var filterval = filtergridval.split(",");
// filterval gives above cokie i metntioned
}