Example of Show or Hide Column in ASP.NET Core Tree Grid Control
This sample demonstrates dynamic show/hide columns feature of TreeGrid. Select column name from the properties panel and click hide/show to toggle visibility.
Column
|
|
Hidden Columns
|
The TreeGrid column can be showed/hidden dynamically using
showColumns
and hideColumns
methods.
In this demo, the columns can be showed and hidden by selecting the column name in the dropdown
and click the Show or Hide buttons to toggle visibility. And the column`s visibility is toggled based on the
Columns->HeaderText
value.
The Columns->Visible
property specifies the visibility of a column.
To hide a column at the initial rendering, set the Columns->Visible
property to false.