I just upgraded my kendo grid with filterable options to the new GrodFilterMode.Row. In one of the fields I had a custom monthpicker where the could select a month, and that worked fine before i upgraded to the filter row. Now it is just a normal datepicker. It is set in the colums like this
and the javascript is
why does this break after i just added the line .Mode(GridFilterMode.Row) to .Filterable() ?
col.Bound(x => x.WriteOffTo).Filterable(f => f.UI(
"dateFilter"
));
and the javascript is
function
dateFilter(control) {
$(control).kendoDatePicker({
depth:
"year"
,
start:
"year"
,
format:
"01.MM.yyyy"
,
parseFormat :
"01.MM.yyyy"
,
close:
function
() {
var
picker = $(control).data(
"kendoDatePicker"
);
var
currentDate = picker.value();
currentDate.setDate(1);
picker.value(currentDate);
}
});
}
why does this break after i just added the line .Mode(GridFilterMode.Row) to .Filterable() ?