I am trying to reduce the amount of back-and-forth on a number of columns that are configured to use multi-checkbox filtering, as per the below example:
.Columns(columns => { columns.Bound(c => c.Status).Filterable(f => f.Multi(true) })I would like to set the available values of this filter. The default behaviour is for the entire dataset to be re-requested and returned to the user, where a distinct list of values can be deduced. I am able to implement a more efficient solution for my particular case, but I cannot seem to set the available values of these filters. Finding the relevant th object and setting the data as follows does not seem to work:
var myGrid = $("#MyGrid").data("kendoGrid");var listOfFilterValues = [{"Status": "first"},{"Status": "second"},{"Status": "etc"}];myGrid.thead.find("th").each(function (i,s) { if($(s).data("field") == "Status" && $(s).data("kendoFilterMultiCheck") != null){ $(s).data("kendoFilterMultiCheck").checkSource.data(listOfFilterValues ); }}Is this possible? If so, how?
