ClassRadTreeNode
Represents the RadTreeNode class.
Definition
Namespace:Telerik.WebAii.Controls.Html
Assembly:Telerik.WebAii.Controls.Html.dll
Syntax:
public class RadTreeNode : HtmlContainerControl
Inheritance: objectControlHtmlControlHtmlContainerControlRadTreeNode
Inherited Members
Constructors
RadTreeNode()
Initializes a new instance of the RadTreeNode class.
Declaration
public RadTreeNode()
RadTreeNode(Element)
Initializes a new instance of the RadTreeNode class.
Properties
Category
Get or set the category of this node.
Checkable
Get whether the tree node contains check box so that it can be checked.
Checked
Get or set whether the node is checked.
ClientSideLocator
Get the Client side locator - call method.
Declaration
public override string ClientSideLocator { get; }
Property Value
Overrides
ContextMenuId
Get or set the ID of the context menu.
ContextMenuShown
Get whether the context menu (if such is set for this node) is shown.
EditInputElement
Get the node edit input element.
Enabled
Get or set whether the node is enabled.
Expandable
Check whether the node is expandable.
Expanded
Get or set whether this node is expanded.
HasChildren
Check whether the node has children.
HasContextMenu
True if context menu is available, false otherwise.
HierarchicalIndex
Get the hierarchical index of the node in the nodes collection of the treeview.
Declaration
public string HierarchicalIndex { get; }
Property Value
String of indexes, separated by a colon - for example "0:1:2".
Index
Get the index of the node in the nodes collection of its parent.
IsInEditMode
Get whether the tree node is in edit mode.
Level
Get the level of the node.
LocatorExpression
Get the FindParam that defines the pattern for a treeview node.
Declaration
public override IFindExpression LocatorExpression { get; }
Property Value
Overrides
NavigateUrl
Get or set the navigate url of this item.
NodeValue
Get the value set for this node.
Nodes
Get the list of child nodes of the treenode.
Declaration
public IList<RadTreeNode> Nodes { get; }
Property Value
ParentNode
Get the parent node of this node. Returns 'null' for the root nodes.
PostBack
Get whether the postback of the node is enabled.
Selected
Get or set whether this node is selected.
ShouldNavigate
Check whether the item should navigate.
Target
Get or set the target of the node.
Text
Get or set text of the node.
ToolTip
Get or set the tooltip of the node. If a ToolTip is not set, returns 'null'.
Methods
AssignElement(Element)
Assign the DOM element to be the RadTreeNode control.
Declaration
public override void AssignElement(Element e)
Parameters
e
Overrides
Check()
Check the node if it is not already checked.
Declaration
public void Check()
Click()
Click the node or Navigate if the NavigateUrl is set.
Declaration
public override void Click()
Overrides
Click(bool)
Click the item or Navigate if the NavigateUrl is set.
Declaration
public override void Click(bool isClosing)
Parameters
isClosing
Overrides
Collapse()
Collapse the node if it is not already collapsed.
Declaration
public void Collapse()
ControlAssert()
Get RadControlAssert instance initialized for this control.
Declaration
public RadControlAssert ControlAssert()
Returns
RadControlAssert instance initialized for this control.
DragAndDropTo(HtmlControl)
Drag and drop the node to the specified control. Drops into the center of the element.
Declaration
public void DragAndDropTo(HtmlControl destination)
Parameters
destination
The destination control.
DragAndDropTo(RadTreeNode)
Drag and drop the node to the specified node.
Declaration
public void DragAndDropTo(RadTreeNode node)
Parameters
node
The target node to drop to.
DragAndDropWithOffset(int, int)
Drag and drop the node with the specified x and y offset.
Expand()
Expand the node if it is not already expanded.
Declaration
public void Expand()
FindNode(Predicate<RadTreeNode>)
Find node by given predicate.
Declaration
public RadTreeNode FindNode(Predicate<RadTreeNode> predicate)
Parameters
predicate
The predicate used as search criteria, i.e. "node => node.NodeText == myNodeText".
Returns
The node matching the given criteria or null if nothing matches the search.
FindNodeByText(string)
Finds node by Text.
Declaration
public RadTreeNode FindNodeByText(string nodeText)
Parameters
nodeText
Returns
FindNodeByValue(string)
Finds node by Value.
Declaration
public RadTreeNode FindNodeByValue(string nodeValue)
Parameters
nodeValue
Returns
FindNodes(Predicate<RadTreeNode>)
Get a list of nodes matching the given predicate.
Declaration
public IList<RadTreeNode> FindNodes(Predicate<RadTreeNode> predicate)
Parameters
predicate
The predicate, i.e. (node => node.NodeText == myText).
Returns
The nodes matching the given predicate.