Example of Column Chooser in ASP.NET MVC Data Grid Control
This sample demonstrates the Grid column chooser feature. Click the column chooser icon in the toolbar to open column chooser and you can select columns to hide/show from the checkbox list.
DEMO
SOURCE
The Grid columns can be shown/hidden dynamically by using column chooser. To enable column chooser behavior, set ShowColumnChooser
property as true. You can also prevent the display of a column in column chooser by setting
Columns->ShowInColumnChooser
as false in columns definition.
In this demo, when the user clicks column chooser icon from the toolbar then the column chooser menu will open. User can show or hide the columns by changing the state of the checkbox.