-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi, I have a large list of objects which supports a context menu. I can define a context menu per item and write use a distinct event handler for each item. However, due to some bug I had to turn off render-on-demand. Now, all the context menus for the different items are rendered even though they are not visible. I now switched to using a single context menu for the whole list. The menu shows up fine. But I don't know how to identify the list item that was clicked, i.e., the context. Is there any way to identify the object where the context menu was opened?
Cheers, David
Any event have a target.
event.getTarget()
try to debug/cast this until you get the initiator.
with .getData() you get the Object that is bound to the treeitem.
Asked: 2015-01-15 08:47:58 +0800
Seen: 14 times
Last updated: Jan 20 '15