I have a filterable column grid with a datepicker:
$("#myGrid").kendoGrid({
...
...
field: "myDate",
...
filterable: {
ui: "datepicker"
},
...
Works great. But I will like to preselect the dropdown operator (equal, greater or equal, etc..) based on some criteria, before displaying to the user.
Which event can I use to do that?.
I know I can change some options like the text:
var filterMenuForMyDate = $("#MyGrid").data("kendoGrid").thead.find("th:contains('myDate')").data("kendoFilterMenu");
filterMenuForExportedUTC.options.messages.info = 'My customized text';
..
but I can't find a way to force the operator dropdown to preselect a value before displaying to the user (like a pre-render)
Is there a way to do this?
$("#myGrid").kendoGrid({
...
...
field: "myDate",
...
filterable: {
ui: "datepicker"
},
...
Works great. But I will like to preselect the dropdown operator (equal, greater or equal, etc..) based on some criteria, before displaying to the user.
Which event can I use to do that?.
I know I can change some options like the text:
var filterMenuForMyDate = $("#MyGrid").data("kendoGrid").thead.find("th:contains('myDate')").data("kendoFilterMenu");
filterMenuForExportedUTC.options.messages.info = 'My customized text';
..
but I can't find a way to force the operator dropdown to preselect a value before displaying to the user (like a pre-render)
Is there a way to do this?