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

DxTreeList.RowDoubleClick Event

Fires when a user double clicks a TreeList row.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[Parameter]
public EventCallback<TreeListRowClickEventArgs> RowDoubleClick { get; set; }

#Parameters

Type Description
TreeListRowClickEventArgs

The event data.

#Remarks

You can use the RowDoubleClick event to handle double-clicks on TreeList rows. Use the TreeListRowClickEventArgs event arguments (Column, VisibleIndex, and so on) to access a clicked row and other TreeList data.

@inject EmployeeTaskService EmployeeTaskService

<DxTreeList Data="TreeListData" KeyFieldName="Id" ParentKeyFieldName="ParentId" RowDoubleClick="OnRowDoubleClick">
    <Columns>
        <DxTreeListDataColumn FieldName="Name" Caption="Task" />
        <DxTreeListDataColumn FieldName="EmployeeName" />
        <DxTreeListDataColumn FieldName="StartDate" />
        <DxTreeListDataColumn FieldName="DueDate" />
    </Columns>
</DxTreeList>

@Alert

@code {
    List<EmployeeTask> TreeListData { get; set; }
    public string Alert { get; set; } = "";

    protected override void OnInitialized() {
        TreeListData = EmployeeTaskService.GenerateData();
    }
    void OnRowDoubleClick(TreeListRowClickEventArgs e) {
        Alert = $"Double-clicked row index: {e.VisibleIndex}. Corresponding task: '{e.TreeList.GetRowValue(e.VisibleIndex, "Name")}'";
    }
}

TreeList - Row Double Click

Note

The RowDoubleClick event does not fire when a user double clicks on empty space displayed to the right of the TreeList. This space appears when the total width of all columns is less than the component width.

See Also