DxContextMenu.Shown Event

Fires when the Context Menu is shown.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

Declaration

[Parameter]
public EventCallback Shown { get; set; }

Remarks

Handle the Shown event to specify the code that should be executed when the Context Menu is shown.

NOTE

To show/hide the Context Menu, use the ShowAsync and HideAsync() methods, respectively.

<DxContextMenu Shown="@OnShown">
    <Items>
        <DxContextMenuItem Text="Copy"></DxContextMenuItem>
        <DxContextMenuItem Text="Cut"></DxContextMenuItem>
        <DxContextMenuItem Text="Remove"></DxContextMenuItem>
    </Items>
</DxContextMenu>

@code {
    void OnShown() {
        // Your code
    }
}

Run Demo: Context Menu

See Also