DxContextMenu.Hidden Event

Fires when the Context Menu was hidden.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.dll

Declaration

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

Remarks

Handle the Hidden event to specify the code that should be executed when the Context Menu is hidden.

NOTE

To show/hide the Context Menu, use the Show and Hide() methods, respectively.

<DxContextMenu Hidden="@OnHidden">
    <Items>
        <DxContextMenuItem Text="Copy"></DxContextMenuItem>
        <DxContextMenuItem Text="Cut"></DxContextMenuItem>
        <DxContextMenuItem Text="Remove"></DxContextMenuItem>
    </Items>
</DxContextMenu>

@code {
    void OnHidden() {
        // Your code
    }
}
NOTE

Online Demo: Context Menu

See Also