Skip to content

Add Grid.getContextMenu() #1514

Closed

Description

@mvysny

Please add support for retrieving current GridContextMenu from Grid, e.g. Grid.getContextMenu(). There already is Grid.addContextMenu() but there is no way to retrieve the instance later on. This is very helpful e.g. for Karibu Testing, in order to be able to test clicking on the context menu item.

Activity

  1. mvysny commented on Sep 29, 2026

    @mvysny
    MemberAuthor

    This is a special case of #1520: a proposal there covers both a general ContextMenuBase.getContextMenus(Component) and a Grid.getContextMenus() (returning a list, since a grid can have more than one GridContextMenu): #1520 (comment)

  2. vaadin-bot commented on Sep 29, 2026

    @vaadin-bot
    Collaborator

    This ticket/PR has been released with Vaadin 25.4.0-alpha1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions