How to open the column chooser dialog externally?
Since the column chooser dialog is rendered using the Dialog control, we can use the open method of the Dialog control to open the column chooser from any external action.
On clicking the button, Column Chooser Dialog will be opened. In the click event of the button, calculate the positon of the button. Based on its position open the Column Chooser using the open method of the Dialog control.
The following screenshot shows the ColumnChooser dialog opened below the external button.
Figure 1: Grid with Column chooser dialog opened externally
If you would like to remove the default column chooser button (“Columns”) from the Grid, hide them in the dataBound event of the Grid.
Figure 2: Grid with Column chooser dialog opened externally without default button
This page will automatically be redirected to the sign-in page in 10 seconds.