I am creating my own filters on filter initialization and i need to do some logics and adding values in my filter inputs every time the user click on the filter, but the issue is that filterMenuInit is being fired only once. i was wondering how i can raise this event again, or is there any other event which is being raised on the clicking on the filter?
var
initializedFilterMenu =
function
(e) {
//my logic
};
var
gridOptions = {
dataSource: dataSource,
columns: gridColumns,
editable: gridEditable,
pageable: {
refresh:
true
,
//if set to true, it will show refresh button,clicking on that will make the grid to refresh
numeric:
false
,
previousNext:
false
,
messages: {
display:
"Loaded {0}-{1} from {2} data items"
},
},
height: gridHeight,
scrollable: {
virtual:
true
,
},
groupable: gridGroupable,
filterable: gridFilterable,
sortable: {
mode:
"multiple"
},
filterMenuInit: initializedFilterMenu,
// The initializedFilterMenu event is raised when the filter menu is initialized.
};
var
grid = Ember.$(
"#kendo-grid"
).kendoGrid(gridOptions).data(
'kendoGrid'
);
_this.set(
'kendoGrid'
, grid);