Skip to main content

ToolbarItemClickEventArgs.MouseEventArgs Property

The Blazor’s built-in MouseEventArgs event arguments.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

public MouseEventArgs MouseEventArgs { get; }

Property Value

Type Description
MouseEventArgs

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

Remarks

The following code snippet 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