[]
        
(Showing Draft Content)

Context Menu

Use the Browser Context Menu

FlexGrid displays a built-in selection context menu on right-click by default. Disable this menu to allow the browser’s native context menu to appear instead.

The browser context menu exposes standard browser actions based on the target element, such as opening links, copying content, or inspecting elements.

Disable the Selection Context Menu

Set the ShowSelectionMenu property to false to disable the built-in selection menu:

<FlexGrid ShowSelectionMenu="false" ItemsSource="@data">
</FlexGrid>

Behavior

  • ShowSelectionMenu = true (default)

    Displays the built-in selection context menu.

  • ShowSelectionMenu = false

    Displays the browser’s native context menu.

  • The setting applies to all right-click interactions within the FlexGrid.

Limitations

  • Applies to the Entire Grid

    The ShowSelectionMenu property applies to the entire FlexGrid instance and cannot be scoped to specific rows, columns, or regions.

  • No Element-Level or Conditional Control

    The browser context menu cannot be enabled selectively for individual cells or elements. Context menu behavior cannot be changed dynamically based on the interaction context.

  • Server-Side Interaction Constraint

    Fine-grained control over context menu behavior is not supported due to the server-side interaction model used by FlexGrid in Blazor.