ToolbarItemClickEventArgs.MouseEventArgs Property

The Blazor’s built-in MouseEventArgs event arguments.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

Declaration

public MouseEventArgs MouseEventArgs { get; }

Property Value

Type Description
MouseEventArgs

A MouseEventArgs object that provides mouse-related data for the RowClick event.

Remarks

The code below uses the MouseEventArgs event argument to handle an item’s double-click.

<DxToolbar ItemClick="OnItemCommonClick">
    <DxToolbarItem Text="New"></DxToolbarItem>
    <DxToolbarItem Text="Edit"></DxToolbarItem>
    <DxToolbarItem Text="Delete"></DxToolbarItem>
</DxToolbar>

@code  {
    void OnItemCommonClick(ToolbarItemClickEventArgs args) {
        if(args.MouseEventArgs.Detail == 2) {
            // Double-click handler
        }
    }
}
See Also