It was on one of the other forums that this reqiurement was put. It was required to
collapse all treeview nodes on the client with javascript.
So, i wrote some script to accomplish the task and realizing that the script to Expand all nodes will not be very different, i did a minor modification to get it working for the expand all case. Now with this script we can save a server trip for just expanding
or collapsing all nodes. I have tested the script in IE7 & FF2.0 and it works fine in both. Below i give the script:
1)Expand all nodes
------------------------------------------------------------------------------------
function expandAll(treeViewId)
{
var treeView = document.getElementById(treeViewId);
var treeLinks = treeView.getElementsByTagName("a");
&nbs ...
Go to the complete details ...