Add Checkbox for Selected TreeItem [com.extjs.gxt.ui.client.widget.tree.TreeItem]
Hi all,
I tried to google but i was not able to find how to add a checkbox for a selected node in a tree.
By making Tree.setCheckable(true); will show a checkbox for all the parent and child node, my requirement is to have check box for only those node whose status is satisfied,
Thank you in Advance
Aks
I'm understood nothing :-(
I' just novice in Ext.
My task now is to set checkboxes visible, when no "checked" params in json data(see example) setted.
The idea was to use treePanel's "load" event and just write something about
...... treePanel definition......
......................
load: function(node){
if(typeof node.checked != 'undefined'){
node.checked = false;
return;
}
node.checked = true;
}
........
Data in check-tree.json stays unchanged
Suggested:
Branches in example will be visible with empty checkboxes
leafs wil be set to checked
BUT:
IE debugger show this code is never called.
all checkboxes in the sampe stays unchecked
What is wrong?! I can't understand? but even "checkchange" listener from example is not calling from debugger, but check boxes are functioning!
Can somebody help me?
if you can FULL code, please
Gteat thanks for All