Filter to datatable header

Hi Webix team,

https://snippet.webix.com/7mfkhhf0

How to give filter to header if I am using autoConfig true to datatable?

Thanks,
Mira

Hello,

You can add the filter separately:

$$("grid").getColumnConfig("title").header[0].content = "textFilter";
$$("grid").refreshColumns()

Please check the sample: Code Snippet

or, if you want to add the filter in several columns, so you can use our autoConfig as a basis and create the needed feature
https://snippet.webix.com/nc6s44jc

There is important to use waitData, cause it provide the oppotunity to create config which based on incoming data (otherwise, the config will be empty)

@Nastja
Thanks for your reply,but I want the header name and filter both.
In your snippet there is no text only filter.
https://snippet.webix.com/lscu83ji
can I do something like this?

You could add a second header with the filter
https://snippet.webix.com/n8tcvcj0