Filter click event

Hello,

I need to capture filter click event for my datatable. I tried to do this with onHeaderClick but it does not capture the filter click. I read the documentation and forum answers but I didn’t find the way. Any solution to achieve this?

Thanks in advance!

Hello,

Click on the text and selectFilter triggers only a global onFocusChange event (which can’t help here), but in the richselect-based filters it’s possible to use theinputConfig property to define the needed richselect event:

http://webix.com/snippet/46c1b604

onFocusChange event could be useful but I can not make it work:
http://webix.com/snippet/0c6596c8

By the way, I want to use it on number and date filters, to show a message explaining filter grammar.

It’s a global event and can’t be attached to a particular input. By the way, you can use a native HTML onclick event:

http://webix.com/snippet/e05d1eda

webix.event + grid.getFilter is a very good combination. It works, thanks!