I'm using the 04/25 nightly build of 4.0d Power Edition. The IPickTreeItem doesn't seem to update it's display value when the value changes. I've used the sample code from the showcase:
http://www.smartclient.com/smartgwt/showcase/#picktree_combobox_category
No matter which value I choose - I still get the empty message: "Choose a value".
thanks,
dan
http://www.smartclient.com/smartgwt/showcase/#picktree_combobox_category
Code:
final TreeNode departmentRoot = new DepertmentTreeNode("root", new DepertmentTreeNode("Marketing", new DepertmentTreeNode("Advertising"), new DepertmentTreeNode("Community Relations")), new DepertmentTreeNode("Sales", new DepertmentTreeNode("Channel Sales"), new DepertmentTreeNode("Direct Sales")), new DepertmentTreeNode("Manufacturing", new DepertmentTreeNode("Design"), new DepertmentTreeNode("Development"), new DepertmentTreeNode("QA")), new DepertmentTreeNode("Services", new DepertmentTreeNode("Support"), new DepertmentTreeNode("Consulting"))); final DynamicForm form = new DynamicForm(); form.setWidth(300); Tree tree = new Tree(); tree.setRoot(departmentRoot); IPickTreeItem departmentItem = new IPickTreeItem(); departmentItem.setTitle("Department"); departmentItem.setValueField("name"); departmentItem.setValueTree(tree); form.setItems(departmentItem); form.draw();
thanks,
dan
Comment