View Full Version : Can you put a checkbox on parent nodes in a TreePanel

15 Aug 2012, 6:47 PM
I am using a checkbox selection model on a TreePanel. I would like to know if it possible to have checkboxes next to parent nodes. When a parent node is checked all its children get checked. Simple example: check the root parent and all nodes in the tree get checked.

Thanks in advance.

16 Aug 2012, 5:33 AM
you can add checked property to your tree nodes. Also use toggleCheck(boolean) method to control checked values.

16 Aug 2012, 8:11 AM
You can have a look at:


16 Aug 2012, 8:51 AM
That site is not working, no data in any of the trees.

I know you can add a 'checked' property to get checkboxes on the leaf nodes. However adding a 'checked' property to non-leaf nodes does not add a checkbox. I.E. I need a checkbox next the the folder/non-leaf nodes.