vaadin/vaadin-context-menu

Select Grid row using context menu

Ramonrune opened this issue · 2 comments

In vaadin 7-8 we have the following functionality:

`
myGrid.addContextClickListener(new ContextClickListener() {

		@Override
		public void contextClick(ContextClickEvent event) {
			if (!(event instanceof GridContextClickEvent)) {
				return;
			}
			GridContextClickEvent e = (GridContextClickEvent) event;

			ContextMenu contextMenuView = new ContextMenu(myGrid, false);

			MyModel file = (MyModel) e.getItemId();

			fillMenu(contextMenuView, file, e.getItemId());

			contextMenuView.open(event.getClientX(), event.getClientY());
		
	});

`
It is really good because i can select Grid Row item before context menu open. In current version i can't do it using Java. I think it would be a great improvement.

Thanks for the issue. Moving it to vaadin-grid-flow repository as related to Grid for Flow.

This issue was moved to vaadin/vaadin-grid-flow#491