It seems like a simple thing, but I'm just not seeing it. I want to set a context menu on a ListGrid where the context is the specific row that was contextClicked. I've tried ListGrid.setContextMenu but the menu only shows up when I context-click somewhere in the ListGrid canvas area but *not* on a row. If I context-click on a row nothing happens. What am I missing. Is there a SmartGWT example that shows a row level context menu?
Announcement
Collapse
No announcement yet.
X
-
isc_version=8.3.js
isc_build=3.1p.2013-10-24
FF and IE
Hi,
I had also this problem and solved it by
grid.addCellContextClickHandler(new CellContextClickHandler)
and
appMenu.moveTo(EventHandler.getX(), EventHandler.getY())
but now when I context-select the last row on the gird the menu is trapped. When setting the menu as contextMenu on the widget the menu is shown on the above side, also managed automatically when the bottom border of the window nears the widget, please see the attachment.
Should I now for such cases manually estimate the position of the menu?
Regards,
zapryano
Comment
Comment