Skip to main content
All docs
V24.2

DxTreeListDataColumn Class

DxTreeList data column.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

public class DxTreeListDataColumn :
    DxTreeListColumn,
    IGridDataColumn,
    IGridColumn,
    ITreeListDataColumn,
    ITreeListColumn,
    IParameterTrackerSettingsOwner

Remarks

Add a DxTreeListDataColumn object to the Columns collection and specify the FieldName property. This property binds the column to a data field.

@inject EmployeeTaskService EmployeeTaskService

<DxTreeList Data="TreeListData" KeyFieldName="Id" ParentKeyFieldName="ParentId">
    <Columns>
        <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();
    }
}

Bind Blazor TreeList to Flat Data

Run Demo: TreeList - Flat Data Read Tutorial: Columns in Blazor TreeList

Inheritance

Object
ComponentBase
DevExpress.Blazor.Internal.BranchedRenderComponent
DevExpress.Blazor.Internal.ParameterTrackerSettingsComponent
DevExpress.Blazor.Internal.GridColumnBase
DxTreeListColumn
DxTreeListDataColumn
See Also