-
FEATURED COMPONENTS
First time here? Check out the FAQ!
hi, i have a tree and i am setting checkmark for all the tree items. but i want a main one at the header to perform a select all. is it possible to do it? i have checked the api and seems like there is no way. anyone has done it before or is there a workard?
hi ashishd,
i know this could be done at the tree root checkmark. but what i wanted was to have a checkmark at the header, and then allow users to select and then check all the tree roots and tree children. i believe it is not the same as what you have mentioned in the thread.
Thanks & Regards,
yunchang83
Hi yunchang83,
Sorry I misunderstood your question. However I am not sure what you mean by "header" as tree component doesn't have its own header as such. In your case you might have a single checkbox placed right above your tree root items's checkmark and on when user selects this checkbox(which is not part of tree component) you can recursively select all tree items using getTreeChildren() method on treeitem components.
Thanks
- Ashish
hi ashishd,
thanks for giving me the solution, i have found out that i can actually include a checkbox into the tree at the header. (the header means the treecol, the 1st row that does not come with checkmark) i just needed to do it this way below:
<tree checkmark="true" multiple="true"> <treecols> <treecol> <checkbox label=""/> Title </treecol> </treecols> </tree>
Asked: 2010-04-08 00:09:50 +0800
Seen: 196 times
Last updated: Apr 08 '10