Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

C#
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:

Razor
<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