3
votes

I'm using kendo-ui grid and I want to create a totally custom column filter. Is there a way to pass a template or something like this to the grid?

EDIT:

Another question: is there a way to catch the click on "filter" button inside the filter view?

1
See their documentation: demos.telerik.com/kendo-ui/web/grid/… - Brett
Yes I saw that - none of the filters there are really custom. You can only manipulate the element you're getting in the filter function you provide. But what if for example I want my filter to have alist of checkboxes and that's all (and also without the dropdown saying "starts with", "equal to" etc.) - julius_am
It doesn't seem like that functionality is supported in the current version of Kendo UI. You would have to roll your own filter widget and "attach" it to the grid. - Brett
I would use the header template of the column definition, for setting the HTML of the new column filter. at least a placeholder. After the grid is rendered, and the HTML is in place, I would attach all the event handlers to the awesome column filter. - Adrian Salazar

1 Answers

0
votes

You could use the filterMenuInit event of the Grid to attach a click handler to the "Clear" and "filter" button.

for Clear button in

function filterMenuInit(e) {
    e.container.on("click", "[type='reset']", function () {
        alert("Clear button clicked");
    });
}