PDA

View Full Version : [OPEN] [2.0-M3]TreePanel check cascade problem



chun.xu
18 Jun 2009, 4:56 AM
i use windows host mode, when i use checkable TreePanel, if initial state is expand all, when i click to check child node, the parent node can not be auto checked.
then if i not expand all first, that's ok.
my code like this:


store = new TreeStore<MenuNode>();
store.add(arg0, true);
tree = new TreePanel<MenuNode>(store);
tree.setDisplayProperty("name");
tree.setWidth(150);
tree.setCheckable(true);

cp.removeAll();
cp.add(tree, new FlowData(10));
layout();
tree.expandAll();



the next problem is when i use code to set tree node checked, seems no affect. code like this :


for (MenuNode ti : items) {

if (checkMenus.contains(ti.getId())) {
tree.setChecked(ti, true);
Window.alert("" + tree.isChecked(ti));

}
}

Window.alert("" + tree.getCheckedSelection().size());


the window.alert shows false, and size shows 0.
who can tell me why?

chun.xu
22 Jun 2009, 5:28 PM
why this bug no one fix?

sven
22 Jun 2009, 5:44 PM
This issue was reported 4 days ago. We are looking into it.

sven
25 Jun 2009, 7:05 AM
I am unable to reproduce any of the two reported issue. Can you test your issue against the latest release(rc1)?

If it still is not working can you please post a complete testcase that demonstrates this issue?