Hi:
I have implemented a checkbox to expand all nodes in a TreeList. The checkbox resides within the header template. On the event "checkedChanged" of the checkBox , I call the server side method "Expand ALL".
Now, when I check the 'expand all' checkbox the tree expands as expected. But after postback the 'Checked' state of the checkbox is not preserved.Meaning, after the expansion the checkbox check state becomes 'UnChecked' (The tick mark disappears). I would like to preserve the checked state so that on un-checking it I can collaplse the tree back.
I tried saving the state in viewState and assign it back after postback. But it did not work.
Could any one point me to the right direction?
Also it would be nice if someone could show me how to access programmatically the checkbox from within the header Template
Thanks
Shabbir.
I have implemented a checkbox to expand all nodes in a TreeList. The checkbox resides within the header template. On the event "checkedChanged" of the checkBox , I call the server side method "Expand ALL".
Now, when I check the 'expand all' checkbox the tree expands as expected. But after postback the 'Checked' state of the checkbox is not preserved.Meaning, after the expansion the checkbox check state becomes 'UnChecked' (The tick mark disappears). I would like to preserve the checked state so that on un-checking it I can collaplse the tree back.
I tried saving the state in viewState and assign it back after postback. But it did not work.
Could any one point me to the right direction?
Also it would be nice if someone could show me how to access programmatically the checkbox from within the header Template
Thanks
Shabbir.