Skip to main content
All docs
V24.2

DxTreeListColumn.ShowInColumnChooser Property

Specifies whether a hidden column should be listed in the column chooser.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[DefaultValue(true)]
[Parameter]
public bool ShowInColumnChooser { get; set; }

Property Value

Type Default Description
Boolean true

true to display a column in the column chooser; otherwise, false.

Remarks

When you set the column’s Visible property to false, the treelist does not display this column. However, users can invoke the column chooser to change the column visibility. If you need to hide a column in the column chooser, set the ShowInColumnChooser property to false. Note that if you exclude a band, the column chooser also does not display its nested columns.

@inject EmployeeTaskService EmployeeTaskService

<DxTreeList Data="TreeListData" KeyFieldName="Id" ParentKeyFieldName="ParentId">
    <Columns>
        <DxTreeListDataColumn FieldName="Name" Caption="Task" ShowInColumnChooser="false" />
        <DxTreeListDataColumn FieldName="EmployeeName" />
        <DxTreeListDataColumn FieldName="StartDate" />
        <DxTreeListDataColumn FieldName="DueDate" />
    </Columns>
</DxTreeList>
@code {
    List<EmployeeTask> TreeListData { get; set; }

    protected override void OnInitialized() {
        TreeListData = EmployeeTaskService.GenerateData();
    }
}
See Also