Hi, I want to set a default filter value for a column on the grid but only if the application is not already persisting state. My question is how do I set a filter programmatically in this scenario? There is a Boolean column called "Enabled" that I am trying to default to TRUE when no pervious grid state can be found on client.
var localStorageKey = "UserAdministrationUserGridOptions";$(function () { // pull client grid state and apply to grid (filters, current page, sorts, etc). setGridOptions();});function setGridOptions() { var options = localStorage[localStorageKey]; if (options) { $("#UserAdministrationUserGrid").data("kendoGrid").setOptions(JSON.parse(options)); } else { // set initial enabled filter to true // HOW DO I DO THIS IN JAVASCRIPT // server: .Filter(f => f.Add(m=> m.Enabled).IsEqualTo(true)) }}