hi
can we place the check box as a Expand and collapse column Header to implement the functionality Expand All / Collapse All?
if it is possible please provide me sample code
thanks
Can this be done?? Adding the image or checkbox is easy but what is the code to expand/collapse all? No one seems to know. I've called support and no answer. Thanks.
Hi Tracyd,
This element is not templatable, but via the initialize event, you could insert some html there (as you've probably done). However, there is no client method for expand and collapse all. You could submit a feature request to get this functionality (and for the header checkbox). There are server methods to do this, so you could initiate a postback and call those methods. If you had initial data bind depth set to -1, you could just call set_expanded() on all rows. You would need to do this recursively to go through all levels.
regards,
David Young