You found a bug! We've classified it as
a bug in our system.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
[FIXED] 2.0 M2 tree right click selection problem
Since version 2.0 M2 a right click on a tree with context menu does not select the node your clicked on. So the context menu is operating on the previous selcted node. The problem is reproducable with the contextmenu tree sample (Ext GWT 2.0-m2 Explorer demo). Is it a bug or is it possible to retrieve the selected node (with right click) otherwise than with tree.getSelectionModel().getSelectedItem()?
Ext GWT Premium Member
just running into the same issue. I like the new behavior that the right click doesn't set the selection to the node that was clicked, but there have to be a way to get that right-clicked node. Any updates on that?
Sencha - GXT Dev Team
Fixed in SVN. You can validate at http://extjs.com/examples-dev/explor...ontextmenutree.
If the right click node is not selected it is selected on right click. If the node is already selected and has multiple selections, the selections are not changed so that you can act on all nodes.