We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

TreeGrid: adding and removing columns

Hello,

How to add and remove columns by javascript?

Thanks!

1 Reply

DK Dinesh Kumar Nagarathinam Syncfusion Team November 20, 2015 09:45 AM UTC

Hi Jorge,

We can add a new column or remove an existing  column by using “Load” client side event of TreeGrid during load time. Also by the using the header text of the column we can enable or disable the visibility of a column with the public methods “showColumn” and “hideColumn”, and we can do the same by enabling column chooser in TreeGrid.

We have prepared a sample based on your requirement, find the sample from below location.

Sample: http://www.syncfusion.com/downloads/support/forum/121218/ze/ShowHide_column1156592501

Please let us know, if you need further assistance on this.

Regards,

Dinesh kumar.N


Loader.
Live Chat Icon For mobile
Up arrow icon