Skip to main content
All docs
V24.2

DxTreeListSelectionColumn.AllowSelectAll Property

Specifies whether the selection column contains the Select All checkbox.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

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

Property Value

Type Default Description
Boolean true

true if the selection column contains the Select All checkbox; otherwise, false.

Remarks

When the SelectionMode property is set to Multiple (the default value), the selection column displays checkboxes. A user can click the checkbox in the header cell to select or deselect all rows on the current page or on all TreeList pages depending on the SelectAllCheckboxMode property value.

Blazor TreeList Selection Column Select All

Disable the AllowSelectAll option to hide the Select All checkbox from the header cell.

@inject EmployeeTaskService EmployeeTaskService

<DxTreeList Data="TreeListData"
            KeyFieldName="Id"
            ParentKeyFieldName="ParentId">
    <Columns>
        <DxTreeListSelectionColumn AllowSelectAll="false" />
        <DxTreeListDataColumn FieldName="Name" Caption="Task" />
        <DxTreeListDataColumn FieldName="EmployeeName" />
        <DxTreeListDataColumn FieldName="StartDate" />
        <DxTreeListDataColumn FieldName="DueDate" />
    </Columns>
</DxTreeList>

@code {
    List<EmployeeTask> TreeListData { get; set; }
    IReadOnlyList<object> SelectedDataItems { get; set; }

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

Blazor TreeList Selection Column

For more information about selection in the TreeList component, refer to the following topic: Selection and Focus in Blazor TreeList.

See Also