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
#Create a Data Column
Add a DxTreeListDataColumn
object to the Columns collection. Specify the FieldName property to bind the column to a data field. Note that the FieldName property value must be unique for each data column.
@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();
}
}
#Column Cell Editors
The TreeList component generates and configures cell editors for columns based on associated data types. The component automatically displays column editors in the filter row and in data rows during edit operations.
The table below list classes that define cell editor settings and the corresponding data types:
Editor Settings | Generated for Data Types | Supported Data Types |
---|---|---|
All data types | ||
All data types | ||
Never generated | Numeric, String, Time | |
Never generated | ||
Refer to the following topic for additional information: Cell Editors in Blazor TreeList.
#Implements
#Inheritance
-
The TreeList replaces a checkbox editor with a combo box in the filter row.