| ASP TreeView control - Method Add
Populate TreeView with one method
|
| |
|
<%@ Import Namespace="obout_ASPTreeView_2_NET" %>
Add
|
Adds a new node.
Add ( ParentId , Id , TextOrHTML , [ Expanded ] , [ ImgSrc ] , [ SubTreeURL ] )
ParentId - ID of a parent node.
id - Node ID.
TextOrHTML - Text or HTML to display inside the node.
Expanded - When True, node is open on load. Optional
ImgSrc - Icon image. Optional
SubTreeURL - URL to page with tree for loading dynamically (on-demand, on-fly, etc). Optional
oTree.Add("root", "books", "Library Books", True, "book.gif", Nothing)
|
|
|
|
|
AddRootNode
|
Adds only one first root node. Optional
AddRootNode(TextOrHTML, [Expanded], ImgSrc)
- TextOrHTML - Text or HTML to display inside the node.
- Expanded - When true, the root node is open on load. Optional
- ImgSrc - Icon image.
oTree.AddRootNode("Library catalog", true, "catalog.gif")
Visit this page for more information regarding the root node.
|
|
|
|
|
| "Thank you!!! ... Awesome customer service!! :)" |
Romi Kovacs |
|
| |
|