i have a treeview. I'd like to hide the expand/collapse image on the root node. I tried the following:
and this works, however the tree nodes still have a large amount of space to their left where the expand/collpase image would have been. Is there any way to get the root node to left justify against the left edge of the treeview in this case?
function pageLoad() { var treeView = $find("<%=TreeView1.ClientID%>"); var node = treeView.get_nodes().getNode(0); var toggleElement = node.get_toggleElement(); if (toggleElement) toggleElement.style.display = "none"; }and this works, however the tree nodes still have a large amount of space to their left where the expand/collpase image would have been. Is there any way to get the root node to left justify against the left edge of the treeview in this case?