| |||||||
TreeView.ExpandDepth PropertySystem.Web.UI.WebControls Namespace TreeView Class .NET Framework version 2.0 Sets or retrieves the number of levels that are expanded when a TreeView control is displayed for the first time. Syntax
Property Value
The property is read/write with a default value of -1, which displays all the nodes. RemarksUse the ExpandDepth property to control the rendering of the TreeView control the first time that it is displayed. On subsequent postbacks, the nodes retain their current expanded state. ExampleThe following example demonstrates how to use the ExpandDepth property to set the number of levels to display when the TreeView is initially rendered. <asp:treeview id = "myTreeView" runat = "server" datasourceid = "siteMap" imageset = "XPFileExplorer" showlines expanddepth=1 /> <asp:sitemapdatasource id = "siteMap" runat = "server" /> See Also |
| ||||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme