PDA

View Full Version : Right click tree node without selecting it



andreiastra
20 Aug 2010, 12:34 AM
Is it possible to right-click on a tree node, say to bring a a popup menu, without actually selecting the node?

sven
20 Aug 2010, 1:53 AM
You can add either a BeforeSelect listener and cancel the selection, or you can extend TreePanelSelectionModel and remove the right click selecting feature

andreiastra
20 Aug 2010, 1:55 AM
Great! Thank you for your quick responce!