Show and hide column filters dynamically

Hello,

Is it possible to show and hide column filters dynamically? The only way I found was in columns intialization:
http://docs.webix.com/datatable__filtering.html#filtersintheheader

Thanks!

Hello,

Header filters cannot be hidden dynamically. But if the filters are placed outside the datatable, you can use hide()/show() methods:

http://webix.com/snippet/82532ba2

Thanks for the reply!

My customer has the same requirement.

Our solution is:

  • Create 2 datatable config for 2 header styly. One config has 2 rows in header (header + filter), and one config has onlye one row (header)

  • Depend on action of User (click button…) we use refreshColumn function to change datatable config. So it works like dynamically.

http://docs.webix.com/api__link__ui.treetable_refreshcolumns.html