I have a TreeView instance that is bound to a SiteMapXmlData source. All nodes have a bound NavigateUrl property. I'm utilizing the tree view as a means to navigate a website.
How do I avoid rendering the HTML mark-up for nodes that are not displayed (e.g. not expanded)? Currently all of these nodes are hidden via "display:none". Since I'm posting back on every click there is no need to toggle node visibility client-side which creates a lot of extra mark-up which I like to avoid.
Neither the NodeCreated and NodeDataBound events seem to help to determine what nodes get written out with "display:none" style. The node "Visible" properties are always true and the attribute "display" is empty.
Thanks.
How do I avoid rendering the HTML mark-up for nodes that are not displayed (e.g. not expanded)? Currently all of these nodes are hidden via "display:none". Since I'm posting back on every click there is no need to toggle node visibility client-side which creates a lot of extra mark-up which I like to avoid.
Neither the NodeCreated and NodeDataBound events seem to help to determine what nodes get written out with "display:none" style. The node "Visible" properties are always true and the attribute "display" is empty.
Thanks.