Click or drag to resize

Tree Class

Represents a tree.
Inheritance Hierarchy

Namespace:  Dynamicweb.Controls
Assembly:  Dynamicweb.Controls (in Dynamicweb.Controls.dll) Version: 4.2.3
Syntax
[DefaultPropertyAttribute("Title")]
public class Tree : Control, IPostBackEventHandler, IResourceLoader

The Tree type exposes the following members.

Constructors
  NameDescription
Public methodTree
Initializes a new instance of the Tree class
Top
Properties
  NameDescription
Public propertyAfterClientCheck
Occurs after client checked tree node.
Public propertyAutoID
Public propertyClientNodeComparator
javascript sort comparator of the tree nodes.
Public propertyCloseSameLevel
Only one node within a parent can be expanded at the same time. openAll() and closeAll() functions do not work when this is enabled.
Public propertyContextMenuID
ID of Dynamicweb.Controls.Contextmenu to display on right click of the navigation area.
Public propertyControlMenu
Gets an instance of ContextMenu object that corresponds to the control menu from the list sub-title.
Public propertyDragAndDrop
Gets drag and drop settings.
Public propertyEnableControlMenu
Gets or sets value indicating whether to enable context menu in the sub-title of the tree.
Public propertyFolderLinks
Should folders be links.
Public propertyImageClosePath
Path of icon used - can be used to overwrite the built-in icons in the ImageClose property.
Public propertyImageOpenPath
Path of icon used - can be used to overwrite the built-in icons in the ImageOpen property.
Public propertyImagePath
Path of icon used - can be used to overwrite the built-in icons in the Image property.
Public propertyInOrder
If parent nodes are always added before children, setting this to true speeds up the tree.
Public propertyInstanceID
ID that should be set when using more than one tree on a page - must be unique.
Public propertyIsProcessingEvents
Gets value indicating whether tree is processing its events.
Protected propertyLoadedNodes
Gets or sets tree nodes loaded on demand.
Public propertyLoadOnDemand
Gets or sets value indicating whether to load tree levels on-the-fly.
Public propertyNodeCount
Number of nodes - if specified it is displayed in the Navigation title.
Public propertyOpenAll
Expands all tree nodes.
Public propertyOpenTo
ID of node that the tree should open the path to.
Public propertyShowRoot
Show root node.
Public propertyShowSubTitle
Gets or sets value indicating whether to show sub-title.
Public propertyShowTitle
Gets or sets value indicating whether to show title.
Public propertySubTitle
Subtitle of the tree.
Public propertyTarget
Target for all the nodes. Can be overridden on the TreeNode.
Public propertyTitle
Title of the tree.
Public propertyToolbarButtons
Gets the collection of toolbar buttons for this tree.
Public propertyTranslateSubTitle
Gets or sets value indicating whether to automatically translate tree sub-title.
Public propertyTranslateTitle
Gets or sets value indicating whether to automatically translate tree title.
Public propertyUseCookies
The tree uses cookies to rember it's state.
Public propertyUseIcons
Tree is drawn with icons.
Public propertyUseLines
Tree is drawn with lines.
Public propertyUseSelection
Nodes can be selected (highlighted).
Public propertyUseStatusText
Displays node names in the statusbar instead of the url.
Top
Methods
  NameDescription
Protected methodControl_OnLoad
Handles tree "OnLoad" event.
Protected methodControl_PreRender
Handles tree "PreRender" event.
Public methodGetParentNodes
Get parents of node from root of tree
Public methodLoadResources
Protected methodOnNodeEdit
Raises "NodeEdit" event.
Public methodRaisePostBackEvent
Fires when postback event is occured.
Public methodRegisterAsDynamic
Registers specified nodes as "dynamic" nodes (loaded by demand).
Protected methodRender
Renders tree.
Top
Events
  NameDescription
Public eventNodeEdit
Occurs after the tree node's name has been edited.
Public eventNodeExpand
Asynchronously fired when a tree node is being expanded.
Top
Remarks