Skip to main content
All docs
V24.1

TreeListColumnSortOrder Enum

Lists values that specify a column’s sort order.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

public enum TreeListColumnSortOrder

Members

Name Description
None

The TreeList sorts column data in ascending order.

Ascending

The TreeList sorts column data in ascending order.

Descending

The TreeList sorts column data in descending order.

Related API Members

The following properties accept/return TreeListColumnSortOrder values:

Remarks

Use the SortOrder property to specify a column’s sort order.

@inject EmployeeTaskService EmployeeTaskService

<DxTreeList Data="TreeListData" KeyFieldName="Id" ParentKeyFieldName="ParentId">
    <Columns>
        <DxTreeListDataColumn FieldName="Name" Caption="Task" SortIndex="1" />
        <DxTreeListDataColumn FieldName="EmployeeName" />
        <DxTreeListDataColumn FieldName="StartDate" />
        <DxTreeListDataColumn FieldName="DueDate" 
                              SortIndex="0"
                              SortOrder="TreeListColumnSortOrder.Descending" />
    </Columns>
</DxTreeList>

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

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

TreeList - SortIndex

Run Demo: TreeList - Sort Data

See Also