I have a requirement,I have five button,for each button I have five header for a particular button i have hide two header out of five.can you Please give some code snippet how to do this.
Could you please provide the snippet with 5 buttons and 5 headers?
onclick of button i have to hide the column inside treetable.
you see in this code sipped.
http://docs.webix.com/samples/15_datatable/30_treetable/05_filter_custom.html
on click of one button I have to hide the State column.
So you can attach a handler to the button and apply the hideColumn method to the treetable.
Like in the snippet: http://webix.com/snippet/e75e049c
Now I show those column which i have hide but my problem is when i hide the column then those two column is hide .I have hard coded the column number when i hide those column its working but in show case in place of those column another column is present .so that time if i give the same column number then its take another column value .can you please give some example how to hide the column without hard code and how to show that column on click of button.
Can you share the existing, not working code ?
As each column has unique ID, I don’t see why you are using some hardcoded numbers. When working with column hiding|showing it is vital to use column IDs not column indexes