Skip to main content
All docs
V24.1

DxTreeListColumn.Name Property

Specifies the column’s unique identifier.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[DefaultValue(null)]
[Parameter]
public string Name { get; set; }

Property Value

Type Default Description
String null

The identifier.

Remarks

Use the Name property to identify columns for which the FieldName property is not specified:

When you create a total summary item, you can set the item’s FooterColumnName property to a column’s Name to display a summary value in this column.

The following example uses the Name property to show the total number of records in the selection column.

@inject EmployeeTaskService EmployeeTaskService

<DxTreeList Data="TreeListData" KeyFieldName="Id" ParentKeyFieldName="ParentId">
    <Columns>
        <DxTreeListSelectionColumn Name="SelectionColumn" />
        <DxTreeListDataColumn FieldName="Name" Caption="Task" />
        <DxTreeListDataColumn FieldName="EmployeeName" />
        <DxTreeListDataColumn FieldName="StartDate" />
        <DxTreeListDataColumn FieldName="DueDate" />
    </Columns>
    <TotalSummary>
        <DxTreeListSummaryItem SummaryType="TreeListSummaryItemType.Count" FieldName="Name"
                               FooterColumnName="SelectionColumn"/>
    </TotalSummary>
</DxTreeList>

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

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

Implements

See Also