Partager via


TREEVIEW Element | TreeView Object

Adds a TreeView element behavior to the document.

Syntax

HTML <namespace:TREEVIEW ... >

Possible Values

namespace Prefix that associates a custom tag with an XML namespace. This prefix is set using the XMLNS attribute of the html tag.

Members Table

The following table lists the members exposed by the TreeView object.

Attribute Property Description
AUTOSELECT autoSelect Sets or retrieves a value that indicates whether or not keyboard hovering selects a node.
CHILDTYPE childType Sets or retrieves the type of TreeNodeType to use for all descendents.
clickedNodeIndex Retrieves the index of the selected TreeNode.
DEFAULTSTYLE defaultStyle Sets or retrieves a value that indicates the default style for the element.
EXPANDEDIMAGEURL expandedImageUrl Sets or retrieves the URL of an image to use for expanded nodes.
EXPANDLEVEL expandLevel Sets or retrieves the number of levels to expand the TreeView when initially rendered.
HOVERSTYLE hoverStyle Sets or retrieves a value that indicates the style of the element when the user hovers the keyboard focus or mouse pointer over it.
IMAGEURL imageUrl Sets or retrieves a value that indicates the URL of the image to be displayed on a node or toolbar item.
INDENT indent Sets or retrieves the number of pixels to indent children in relation to the parent node.
SELECTEDIMAGEURL selectedImageUrl Sets or retrieves the URL of an image to use for a selected node.
SELECTEDNODEINDEX selectedNodeIndex Sets or retrieves the index of the selected TreeNode.
SELECTEDSTYLE selectedStyle Sets or retrieves a value that indicates the style for the selected element.
SELECTEXPANDS selectExpands Sets or retrieves a value that indicates whether or not a parent node expands or collapses when selected.
SHOWLINES showLines Sets or retrieves a value that indicates whether or not to display connecting lines between nodes.
SHOWPLUS showPlus Sets or retrieves a value that indicates whether or not to render a plus or minus sign on parent nodes.
SHOWTOOLTIP showToolTip Sets or retrieves a Boolean that indicates whether to show a default ToolTip for each child node.
SYSTEMIMAGESPATH systemImagesPath Sets or retrieves the path to the directory containing supporting tree images (lines, plus and minus signs, and so on).
TARGET target Sets or retrieves a value that indicates the window or frame at which to target the contents.
TREENODESRC treeNodeSrc Sets or retrieves a value that indicates the URL of an XML file, String, or XML data island containing TreeNode elements.
TREENODETYPESRC treeNodeTypeSrc Sets or retrieves a value that indicates the URL to an XML file, String, or XML data island containing TREENODETYPE elements.
TREENODEXSLTSRC treeNodeXsltSrc Sets or retrieves a value that indicates the URL to an Extensible Stylesheet Language Transformations (XSLT) file, String, or XML data island used to transform TreeNode elements.
Element Object Description
TREENODE TreeNode Specifies a node in a tree.
TREENODETYPE TreeNodeType Adds a TreeNodeType element to a TreeNode.
Event Description
oncollapse Fires on the tree when an expanded tree node is collapsed.
onexpand Fires on the tree when a collapsed tree node is expanded.
oncheck Fires on the tree when a node's check box is clicked.
oncontextmenu Fires when the user right-clicks on a TreeNode.
onfirequeuedevents Not supported.
onhover Fires when the mouse or keyboard moves over a TreeNode.
onnodebound Fires when a TreeView or TreeNode finishes data binding.
onnodetypesbound Fires when a TreeNodeType finishes data binding.
onunhover Fires when the mouse or keyboard moves off of a TreeNode.
onselectedindexchange Fires when the user changes the selected TreeNode on the TreeView.
Method Description
add Adds a TreeNode to the end of the TreeView or TreeNode.
addAt Adds a TREENODE at the given Integer index.
addTreeNodeType Adds the given TreeNodeType to the TreeView.
createTreeNode Creates a TreeNode element.
createTreeNodeType Creates a TreeNodeType element.
databind Asynchronously binds the data to the TreeView or the TreeNode.
databindTypes Asynchronously binds the data to the TreeNodeType.
getAttribute Retrieves the value of the specified attribute.
getChildren Retrieves an array of TreeNode elements from its parent object.
getTreeNode Retrieves an object representing the given TreeNode.
getTreeNodeType Retrieves an object representing the given TreeNodeType.
queueEvent Not supported.
setAttribute Sets the value of the specified attribute.

See Also

Internet Explorer WebControls, About the TreeView WebControl