i am trying to load a tree server-side in a code behind page and need to set certain nodes to be initially hidden from the user. they are made visible based on the answers to certain questions via javascipt client-side (which works fine). i cannot figure out how cause them to be initially hidden or to set a css class on the <LI>. by appending "tree_node_hidden" to the CssClass property of the node - this only causes the caption to be hidden and does not collapse the node.
results in this...
<li class="rtLI"><div class="rtMid">
<span class="rtSp"></span><img src="../images/eforms_blank.gif" alt="" class="rtImg" /><span class="rtIn tree_node tree_node_hidden">Employer</span>
</div></li>
thanks for any help
paul
mynode.CssClass +=
" tree_node_hidden "
results in this...
<li class="rtLI"><div class="rtMid">
<span class="rtSp"></span><img src="../images/eforms_blank.gif" alt="" class="rtImg" /><span class="rtIn tree_node tree_node_hidden">Employer</span>
</div></li>
thanks for any help
paul