Skip to main content

DxContextMenu.Shown Event

Fires when the Context Menu is shown.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.2.dll

NuGet Package: DevExpress.Blazor


public EventCallback Shown { get; set; }


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


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

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

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

Run Demo: Context Menu

See Also