Skip to main content
All docs
V24.2

TreeListDragHintTextTemplateContext.GetDisplayText(ITreeListDataColumn) Method

Returns the display text of a cell in the currently dragged row.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

public string GetDisplayText(
    ITreeListDataColumn column
)

Parameters

Name Type Description
column ITreeListDataColumn

The data column to which the cell belongs.

Returns

Type Description
String

The display text.

Remarks

The following example obtains the display text of the Status column’s cell:

<DxTreeList KeyFieldName="Id"
            ParentKeyFieldName="ParentId"
            Data="DataSource"
            AllowDragRows="true"
            ItemsDropped="TreeList_ItemsDropped">
    <Columns>
        <DxTreeListDataColumn FieldName="Name" Caption="Subject" MinWidth="220" />
        <DxTreeListDataColumn @ref="TreeList_StatusDataColumn" FieldName="Status" Caption="Status" Width="140px" MinWidth="140" />
        <DxTreeListDataColumn FieldName="CreatedDate" Caption="Created" Width="120px" MinWidth="120" />
        <DxTreeListDataColumn FieldName="FixedDate" Caption="Fixed" Width="120px" MinWidth="120" />
    </Columns>
    <DragHintTextTemplate>
        @{
            <span>
                @context.GetDisplayText(TreeList_StatusDataColumn)
            </span>
        }
    </DragHintTextTemplate>
</DxTreeList>

@code {
    DxTreeListDataColumn TreeList_StatusDataColumn { get; set; }
    // ...
}
See Also