Hi all,
I'm trying to implement persist state functionality in you Grid. I've followed this example.
localStorage[
"kendo-grid-orders-options"
] = kendo.stringify(grid.getOptions());
.
.
.
grid.setOptions(JSON.parse(localStorage[
"kendo-grid-orders-options"
]));
Everything works fine except for one detail. When I set a filter on DateTime field and then refresh the page, it throws an internal error in method.
The binary operator GreaterThanOrEqual is not defined for the types 'System.DateTime' and 'System.String'.
It's caused by the date in FilterDescriptor in DataSourceRequest, which is sent as a string instead of a DateTime (pict2). When it's sent directly from the filter (not from the stored options), it works correctly (pict1). Am I able to store not just the filter value, but also the information about the type?