if I add:
.Group(g => {
g.Add(c => c.DistrictName);
g.Add(c => c.SchoolName);
})
to my datasource:
.DataSource(ds => ds
.Ajax()
.ServerOperation(false)
.Read(read => read.Action("RetrieveReqStatusReport", "ReportSupport", new { orgId = ViewBag.OrgSelection.Id, personId = ViewBag.PersonId, yearId = ViewBag.YearSelection.Id }))
.PageSize(50)
.Group(g => {
g.Add(c => c.DistrictName);
g.Add(c => c.SchoolName);
})
)
then
function filterMenuInit(e) {
if (e.field == "DueDate") return;
var filterMultiCheck = this.thead.find("[data-field=" + e.field + "]").data("kendoFilterMultiCheck")
filterMultiCheck.container.empty();
filterMultiCheck.checkSource.sort({ field: e.field, dir: "asc" });
filterMultiCheck.checkSource.data(filterMultiCheck.checkSource.view().toJSON());
filterMultiCheck.createCheckBoxes();
}
generates the following error when I try to filter:
Uncaught ReferenceError: DistrictName is not defined
at eval (eval at compile (kendo.all.min.js:25), <anonymous>:3:209)
at Object.render (kendo.all.min.js:25)
at Object.d [as render] (jquery.min.js:2)
at init.createCheckBoxes (kendo.all.min.js:45)
at init.filterMenuInit (1:371)
at init.trigger (kendo.all.min.js:25)
at init.c (kendo.all.min.js:53)
at init.trigger (kendo.all.min.js:25)
at init._init (kendo.all.min.js:45)
at init._click (kendo.all.min.js:45)
if I remove it, multi-filter works fine.
TIA for the insight into what I'm failing to understand.