How to show Context Menu without triggering a Selection event
How to show Context Menu without triggering a Selection event
I have a TreePanel with selection events doing some other loader stuff on other components. The Tree also has a Context Menu. When the context menu is invoked with a right click, it also triggers a Selection Event, causing the loader code to run from the selected node.
I would like the right click to only show the context menu and not trigger the selection event. Ideas?
You will need to extend TreePanelSelectionModel and override onMouseDown. If it was a rightclick dont call the super method, btu call it in all otehr places.