DxContextMenu.Shown Event
Fires when the Context Menu is shown.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.2.dll
NuGet Package: DevExpress.Blazor
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
}
}
See Also