Skip to main content
All docs
V24.1

DxTreeList.RowDoubleClick Event

Fires when a user double clicks a TreeList row.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[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