-
14 Jan 2010 1:13 PM #1
[FIXED][GXT 2.0.1] TreeGrid and toggle on double click
[FIXED][GXT 2.0.1] TreeGrid and toggle on double click
Hi, this is not a bug, but a code consistency issue.
In the class TreeGrid :
Methodis called within theCode:public void toggle(M model) {..}to perform the tree expansion/collapse when the little arrow is single clicked.Code:protected void onClick(GridEvent<M> e){...}
However, the Double Click is performed the following method is called
As you can see it totally duplicates theCode:protected void onDoubleClick(GridEvent<M> e) { super.onDoubleClick(e); M m = e.getModel(); if (m != null) { TreeNode node = findNode(m); setExpanded(node.m, !node.expanded); } }and if I want to change the toggle behavior I have to override 2 methods instead of one.Code:public void toggle(M model) {..}
Please change above method to following:
Code:protected void onDoubleClick(GridEvent<M> e) { super.onDoubleClick(e); toggle(e.getModel()); }
-
20 Jan 2010 9:34 PM #2
This bug is fixed in the releases/2.1 branch and is now available in the 2.1.1-beta release available here.
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote