PDA

View Full Version : [OPEN] [FIXED] 2.0 M2 tree right click selection problem



semmel
25 May 2009, 1:46 PM
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()?

takayser
19 Jun 2009, 2:30 PM
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?

darrellmeyer
23 Jun 2009, 7:34 AM
Fixed in SVN. You can validate at http://extjs.com/examples-dev/explorer.html#contextmenutree.

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.