TreeListContextMenuDefaultItemNames.ShowColumnChooser Field
The Column Chooser item’s name.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v25.2.dll
NuGet Package: DevExpress.Blazor
Declaration
public const string ShowColumnChooser = "ShowColumnChooser"
Field Value
| Type | Description |
|---|---|
| String | The “ShowColumnChooser” string. |
Remarks
Specify the ContextMenus property to display context menus for the following TreeList elements:

Column Chooser is a TreeList context menu item that opens the column chooser dialog. This item is available in the header context menu.
Use the ShowColumnChooser field to apply the following customizations:
- Access and customize the Column Chooser item
- Add this item to a context menu
- Remove the item from the header context menu
Example
The following code snippet removes the Show Column Chooser item from context menus:
@inject EmployeeTaskService EmployeeTaskService
<DxTreeList Data="TreeListData"
KeyFieldName="Id"
ParentKeyFieldName="ParentId"
ContextMenus="TreeListContextMenus.All"
CustomizeContextMenu="CustomizeContextMenu">
<Columns>
<DxTreeListSelectionColumn Width="80px" />
<DxTreeListDataColumn FieldName="Name" Caption="Task" />
<DxTreeListDataColumn FieldName="EmployeeName" />
<DxTreeListDataColumn FieldName="StartDate" />
<DxTreeListDataColumn FieldName="DueDate" />
</Columns>
</DxTreeList>
@code {
List<EmployeeTask> TreeListData { get; set; }
protected override void OnInitialized() {
TreeListData = EmployeeTaskService.GenerateData();
}
void CustomizeContextMenu(TreeListCustomizeContextMenuEventArgs args) {
args.Items.Remove(TreeListContextMenuDefaultItemNames.ShowColumnChooser);
}
}
See Also