New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Definition

Namespace:Telerik.Web.UI

Inheritance: Telerik.Web.UI.ControlItemContainerTelerik.Web.UI.RadTreeView

Events

Adds a contextMenuItemClicked event handler for the radtreeview

JS
add_contextMenuItemClicked
Parameters:handlerFunction

The event handler function to attach

Adds a contextMenuItemClicking event handler for the radtreeview

JS
add_contextMenuItemClicking
Parameters:handlerFunction

The event handler function to attach

Adds a contextMenuShowing event handler for the radtreeview

JS
add_contextMenuShowing
Parameters:handlerFunction

The event handler function to attach

Adds a contextMenuShown event handler for the radtreeview

JS
add_contextMenuShown
Parameters:handlerFunction

The event handler function to attach

Adds a doubleClick event handler for the radtreeview

JS
add_doubleClick
Parameters:handlerFunction

The event handler function to attach

Adds a keyPressing event handler for the radtreeview

JS
add_keyPressing
Parameters:handlerFunction

The event handler function to attach

Adds a load event handler for the radtreeview

JS
add_load
Parameters:handlerFunction

The event handler function to attach

Adds a mouseOut event handler for the radtreeview

JS
add_mouseOut
Parameters:handlerFunction

The event handler function to attach

Adds a mouseOver event handler for the radtreeview

JS
add_mouseOver
Parameters:handlerFunction

The event handler function to attach

Adds a nodeAnimationEnd event handler for the radtreeview

JS
add_nodeAnimationEnd
Parameters:handlerFunction

The event handler function to attach

Adds a nodeChecked event handler for the radtreeview

JS
add_nodeChecked
Parameters:handlerFunction

The event handler function to attach

Adds a nodeChecking event handler for the radtreeview

JS
add_nodeChecking
Parameters:handlerFunction

The event handler function to attach

Adds a nodeClicked event handler for the radtreeview

JS
add_nodeClicked
Parameters:handlerFunction

The event handler function to attach

Adds a nodeClicking event handler for the radtreeview

JS
add_nodeClicking
Parameters:handlerFunction

The event handler function to attach

Adds a nodeCollapsed event handler for the radtreeview

JS
add_nodeCollapsed
Parameters:handlerFunction

The event handler function to attach

Adds a nodeCollapsing event handler for the radtreeview

JS
add_nodeCollapsing
Parameters:handlerFunction

The event handler function to attach

Adds a nodeDataBound event handler for the radtreeview

JS
add_nodeDataBound
Parameters:handlerFunction

The event handler function to attach

Adds a nodeDragging event handler for the radtreeview

JS
add_nodeDragging
Parameters:handlerFunction

The event handler function to attach

Adds a nodeDragStart event handler for the radtreeview

JS
add_nodeDragStart
Parameters:handlerFunction

The event handler function to attach

Adds a nodeDropped event handler for the radtreeview

JS
add_nodeDropped
Parameters:handlerFunction

The event handler function to attach

Adds a nodeDropping event handler for the radtreeview

JS
add_nodeDropping
Parameters:handlerFunction

The event handler function to attach

Adds a nodeEdited event handler for the radtreeview

JS
add_nodeEdited
Parameters:handlerFunction

The event handler function to attach

Adds a nodeEditing event handler for the radtreeview

JS
add_nodeEditing
Parameters:handlerFunction

The event handler function to attach

Adds a nodeEditStart event handler for the radtreeview

JS
add_nodeEditStart
Parameters:handlerFunction

The event handler function to attach

Adds a nodeExpanded event handler for the radtreeview

JS
add_nodeExpanded
Parameters:handlerFunction

The event handler function to attach

Adds a nodeExpanding event handler for the radtreeview

JS
add_nodeExpanding
Parameters:handlerFunction

The event handler function to attach

Adds a nodePopulated event handler for the radtreeview

JS
add_nodePopulated
Parameters:handlerFunction

The event handler function to attach

Adds a nodePopulating event handler for the radtreeview

JS
add_nodePopulating
Parameters:handlerFunction

The event handler function to attach

Adds a nodePopulationFailed event handler for the radtreeview

JS
add_nodePopulationFailed
Parameters:handlerFunction

The event handler function to attach

Adds a templateDataBound event handler for the radtreeview

JS
add_templateDataBound
Parameters:handlerFunction

The event handler function to attach

Adds a treePopulated event handler for the radtreeview

JS
add_treePopulated
Parameters:handlerFunction

The event handler function to attach

Adds a treePopulating event handler for the radtreeview

JS
add_treePopulating
Parameters:handlerFunction

The event handler function to attach

Removes a contextMenuItemClicked event handler from the radtreeview

JS
remove_contextMenuItemClicked
Parameters:handlerFunction

The event handler function to remove

Removes a contextMenuItemClicking event handler from the radtreeview

JS
remove_contextMenuItemClicking
Parameters:handlerFunction

The event handler function to remove

Removes a contextMenuShowing event handler from the radtreeview

JS
remove_contextMenuShowing
Parameters:handlerFunction

The event handler function to remove

Removes a contextMenuShown event handler from the radtreeview

JS
remove_contextMenuShown
Parameters:handlerFunction

The event handler function to remove

Removes a doubleClick event handler from the radtreeview

JS
remove_doubleClick
Parameters:handlerFunction

The event handler function to remove

Removes a keyPressing event handler from the radtreeview

JS
remove_keyPressing
Parameters:handlerFunction

The event handler function to remove

Removes a load event handler from the radtreeview

JS
remove_load
Parameters:handlerFunction

The event handler function to remove

Removes a mouseOut event handler from the radtreeview

JS
remove_mouseOut
Parameters:handlerFunction

The event handler function to remove

Removes a mouseOver event handler from the radtreeview

JS
remove_mouseOver
Parameters:handlerFunction

The event handler function to remove

Removes a nodeAnimationEnd event handler from the radtreeview

JS
remove_nodeAnimationEnd
Parameters:handlerFunction

The event handler function to remove

Removes a nodeChecked event handler from the radtreeview

JS
remove_nodeChecked
Parameters:handlerFunction

The event handler function to remove

Removes a nodeChecking event handler from the radtreeview

JS
remove_nodeChecking
Parameters:handlerFunction

The event handler function to remove

Removes a nodeClicked event handler from the radtreeview

JS
remove_nodeClicked
Parameters:handlerFunction

The event handler function to remove

Removes a nodeClicking event handler from the radtreeview

JS
remove_nodeClicking
Parameters:handlerFunction

The event handler function to remove

Removes a nodeCollapsed event handler from the radtreeview

JS
remove_nodeCollapsed
Parameters:handlerFunction

The event handler function to remove

Removes a nodeCollapsing event handler from the radtreeview

JS
remove_nodeCollapsing
Parameters:handlerFunction

The event handler function to remove

Removes a nodeDataBound event handler from the radtreeview

JS
remove_nodeDataBound
Parameters:handlerFunction

The event handler function to remove

Removes a nodeDragging event handler from the radtreeview

JS
remove_nodeDragging
Parameters:handlerFunction

The event handler function to remove

Removes a nodeDragStart event handler from the radtreeview

JS
remove_nodeDragStart
Parameters:handlerFunction

The event handler function to remove

Removes a nodeDropped event handler from the radtreeview

JS
remove_nodeDropped
Parameters:handlerFunction

The event handler function to remove

Removes a nodeDropping event handler from the radtreeview

JS
remove_nodeDropping
Parameters:handlerFunction

The event handler function to remove

Removes a nodeEdited event handler from the radtreeview

JS
remove_nodeEdited
Parameters:handlerFunction

The event handler function to remove

Removes a nodeEditing event handler from the radtreeview

JS
remove_nodeEditing
Parameters:handlerFunction

The event handler function to remove

Removes a nodeEditStart event handler from the radtreeview

JS
remove_nodeEditStart
Parameters:handlerFunction

The event handler function to remove

Removes a nodeExpanded event handler from the radtreeview

JS
remove_nodeExpanded
Parameters:handlerFunction

The event handler function to remove

Removes a nodeExpanding event handler from the radtreeview

JS
remove_nodeExpanding
Parameters:handlerFunction

The event handler function to remove

Removes a nodePopulated event handler from the radtreeview

JS
remove_nodePopulated
Parameters:handlerFunction

The event handler function to remove

Removes a nodePopulating event handler from the radtreeview

JS
remove_nodePopulating
Parameters:handlerFunction

The event handler function to remove

Removes a nodePopulationFailed event handler from the radtreeview

JS
remove_nodePopulationFailed
Parameters:handlerFunction

The event handler function to remove

Removes a templateDataBound event handler from the radtreeview

JS
remove_templateDataBound
Parameters:handlerFunction

The event handler function to remove

Removes a treePopulated event handler from the radtreeview

JS
remove_treePopulated
Parameters:handlerFunction

The event handler function to remove

Removes a treePopulating event handler from the radtreeview

JS
remove_treePopulating
Parameters:handlerFunction

The event handler function to remove

Methods

Adds the passed nodes to the passed target's node collection. The usage of this method is preferable when a big amount of child nodes is being added to a certain node's Collection, because it batches the updates to the DOM in a single operation and this is a major performance improvement.

JS
addNodesTo(Telerik.Web.UI.RadTreeNode target, Telerik.Web.UI.RadTreeNodeCollection nodes): void
Parameters:targetTelerik.Web.UI.RadTreeNode

The target receiving the new nodes

nodesTelerik.Web.UI.RadTreeNodeCollection

The nodes to be added

Bulks update operations over the current TreeView instance, executed in the passed function. The parameter is only one and it's a function.

JS
bulkUpdateWith(Function func): void
Parameters:funcFunction

The function that should be executed

Checks all nodes of the TreeView.

JS
checkAllNodes(): void

Checks the passed nodes. The parameter is only one and can be Telerik.Web.UI.RadTreeNodeCollection or regular Array.

JS
checkNodes(Telerik.Web.UI.RadTreeNodeCollection nodes): void
Parameters:nodesTelerik.Web.UI.RadTreeNodeCollection

The nodes to be checked

Writes the changes to the TreeView that were made since a previous call to trackChanges, so that they are preserved on the server as well.

JS
commitChanges(): void

Returns the first RadTreeNode object whose NavigateUrl property is equal to the passed parameter. Note that the parameter should ends with "/" like: var item = sender.findNodeByAbsoluteUrl("https://www.test.com/");

JS
findNodeByAbsoluteUrl(String url): Telerik.Web.UI.RadTreeNode
Parameters:urlString

NavigateUrl of the Node

Returns:

Telerik.Web.UI.RadTreeNode

Gets the first instance of a Node with the specified attribute, value pair.

JS
findNodeByAttribute(String attributeName, String attributeValue): Telerik.Web.UI.RadTreeNode
Parameters:attributeNameString

attributeName

attributeValueString

attributeValue

Returns:

Telerik.Web.UI.RadTreeNode

Gets the first instance of a Node with the specified text.

JS
findNodeByText(String text): Telerik.Web.UI.RadTreeNode
Parameters:textString

Text of the Node

Returns:

Telerik.Web.UI.RadTreeNode

Returns the first RadTreeNode object whose NavigateUrl property is equal to the passed parameter.

JS
findNodeByUrl(String url): Telerik.Web.UI.RadTreeNode
Parameters:urlString

NavigateUrl of the Node

Returns:

Telerik.Web.UI.RadTreeNode

Gets the first instance of a Node with the specified value.

JS
findNodeByValue(String value): Telerik.Web.UI.RadTreeNode
Parameters:valueString

Value of the Node

Returns:

Telerik.Web.UI.RadTreeNode

Returns an array of all the Nodes within the TreeView.

JS
get_allNodes(): Telerik.Web.UI.RadTreeNode[]
Returns:

Telerik.Web.UI.RadTreeNode[]

Returns an array of all the Nodes within the TreeView.

True if the AllowNodeEditing property is enabled, false otherwise.

JS
get_allowNodeEditing(): Boolean
Returns:

Boolean

Boolean

JS
get_checkedIndexes(): void

Returns an array of the checked nodes when CheckBoxes="True".

JS
get_checkedNodes(): Array
Returns:

Array

Array

Returns the DOM element for the root list of nodes in the treeview

JS
get_childListElement(): Element
Returns:

Element

DOM element for the root nodes list

Returns the value of the TreeView's ClientNodeTemplate property.

JS
get_clientTemplate(): void
JS
get_collapseAnimation(): void
JS
get_collapsedIndexes(): void

Returns an Array containing the IDs of the treeview context menus

JS
get_contextMenuIDs(): Array
Returns:

Array

Array

Returns an Array of the treeview context menus

JS
get_contextMenus(): Array
Returns:

Array

Array

Returns the DOM element for the dragged node (during OnClientNodeDragging event handler)

JS
get_draggingClueElement(): Element
Returns:

Element

DOM element for the dragged node

Gets a reference to the DIV element that wraps the TreeView.

JS
get_element(): Element
Returns:

Element

Gets the enabled state of the TreeView.

JS
get_enabled(): Boolean
Returns:

Boolean

True if the EnableDragAndDrop property is enabled, false otherwise.

JS
get_enableDragAndDrop(): Boolean
Returns:

Boolean

Boolean

True if the EnableDragAndDropBetweenNodes property is enabled, false otherwise.

JS
get_enableDragAndDropBetweenNodes(): Boolean
Returns:

Boolean

Boolean

JS
get_expandAnimation(): void
JS
get_expandedIndexes(): void

Gets the server ID of the control.

JS
get_id(): Object
Returns:

Object

Returns the value of the RadTreeView's LoadingMessage property. The default value is "Loading..."

JS
get_loadingMessage(): String
Returns:

String

String

Returns the value of the RadTreeView's LoadingStatusPosition property.

JS
get_loadingStatusPosition(): Number
Returns:

Number

Number

True if MultipleSelect property is enabled, false otherwise.

JS
get_multipleSelect(): Boolean
Returns:

Boolean

Boolean

JS
get_nodeData(): void

Returns the root level RadTreeNodeCollection.

JS
get_nodes(): Telerik.Web.UI.RadTreeNodeCollection
Returns:

Telerik.Web.UI.RadTreeNodeCollection

Telerik.Web.UI.RadTreeNodeCollection

True if the PersistLoadOnDemandNodes property is enabled, false otherwise.

JS
get_persistLoadOnDemandNodes(): Boolean
Returns:

Boolean

Boolean

JS
get_selectedIndexes(): void

Gets the instance of the currently selected Node. Null if none.

JS
get_selectedNode(): Telerik.Web.UI.RadTreeNode
Returns:

Telerik.Web.UI.RadTreeNode

RadTreeNode

Gets an Array of all selected Nodes (useful when MultipleSelect property is trackChanges, so that they are preserved

JS
get_selectedNodes(): Array
Returns:

Array

Array

True if the SingleExpandPath property is enables, false otherwise.

JS
get_singleExpandPath(): Boolean
Returns:

Boolean

Boolean

JS
get_webServiceSettings(): void
JS
saveClientState(): void

Selects all Nodes at all levels of the tree

JS
selectAllNodes(): Object
Returns:

Object

Selects the passed nodes (if MultipleSelection is enabled), or only the last from the passed nodes (if MultipleSelection is disabled). The parameter is only one and can be Telerik.Web.UI.RadTreeNodeCollection or regular Array.

JS
selectNodes(Telerik.Web.UI.RadTreeNodeCollection nodes): void
Parameters:nodesTelerik.Web.UI.RadTreeNodeCollection

The nodes to be selected

Enables/Disables node editing.

JS
set_allowNodeEditing(Boolean value): void
Parameters:valueBoolean

value

JS
set_checkedIndexes(): void

Sets the value of the TreeView's ClientNodeTemplate property.

JS
set_clientTemplate(String value): void
Parameters:valueString

value

JS
set_collapseAnimation(): void
JS
set_collapsedIndexes(): void
JS
set_contextMenuIDs(): void

Enables/Disables the TreeView.

JS
set_enabled(Boolean value): void
Parameters:valueBoolean

value

Enables/Disables drag and drop.

JS
set_enableDragAndDrop(Boolean value): void
Parameters:valueBoolean

value

Enables/Disables drag and drop between nodes.

JS
set_enableDragAndDropBetweenNodes(Boolean value): void
Parameters:valueBoolean

value

JS
set_expandAnimation(): void
JS
set_expandedIndexes(): void

Sets a loading message to the TreeView.

JS
set_loadingMessage(String value): void
Parameters:valueString

value

Sets the value of LoadingStatusPosition property.

JS
set_loadingStatusPosition(Number value): void
Parameters:valueNumber

value

Enables/Disables multiple selection.

JS
set_multipleSelect(Boolean value): void
Parameters:valueBoolean

value

JS
set_nodeData(): void

Enables/Disables PersistLoadOnDemandNodes property.

JS
set_persistLoadOnDemandNodes(Boolean value): void
Parameters:valueBoolean

value

JS
set_selectedIndexes(): void

Enables/Disables SingleExpandPath property.

JS
set_singleExpandPath(Boolean value): void
Parameters:valueBoolean

value

JS
set_webServiceSettings(): void

Displays the context menu for a Node which is equal to the first parameter using pair as a second parameter.

JS
showNodeContextMenu(Telerik.Web.UI.RadTreeNode node, Sys.UI.DomEvent domEvent): void
Parameters:nodeTelerik.Web.UI.RadTreeNode

node

domEventSys.UI.DomEvent

domEvent

Unchecks all nodes of the TreeView.

JS
uncheckAllNodes(): void

Unchecks the passed nodes. The parameter is only one and can be Telerik.Web.UI.RadTreeNodeCollection or regular Array.

JS
uncheckNodes(Telerik.Web.UI.RadTreeNodeCollection nodes): void
Parameters:nodesTelerik.Web.UI.RadTreeNodeCollection

The nodes to be unchecked

Un-selects all Nodes at all levels of the tree.

JS
unselectAllNodes(): void

Unelects the passed nodes. The parameter is only one and can be Telerik.Web.UI.RadTreeNodeCollection or regular Array.

JS
unselectNodes(Telerik.Web.UI.RadTreeNodeCollection nodes): void
Parameters:nodesTelerik.Web.UI.RadTreeNodeCollection

The nodes to be unselected

Not finding the help you need?
Contact Support