I'm trying to create a custom filter on a date field to show items that have a date in the next 30, 60 and 90 days, including any overdue (i.e. dated in the past).
The current code creates a filter with the needed options, but how can the filters be implemented? The 30 day filter is to be applied when the data is loaded initially.
var
pending = [
"60 days"
,
"90 days"
];
var
riskFilter =
function
(e) {
e.kendoDropDownList({ optionLabel:
"30 days"
, dataSource: pending });
}
$(
'#current-reviews'
).kendoGrid({
theme:
'npw'
,
columns: [
{ width:
"240px"
, field:
"nextreview"
, title:
"Next Review Date"
,
format:
"{0:dd MMMM yyyy}"
, filterable: { ui: pendingFilter } },
],
filterable: {
extra:
false
,
operators: {
date: {
lte:
"Is due within"
}
}
}