Class
RadTreeNode

Represents the RadTreeNode class.

Definition

Namespace:Telerik.WebAii.Controls.Html

Assembly:Telerik.WebAii.Controls.Html.dll

Syntax:

cs-api-definition
public class RadTreeNode : HtmlContainerControl

Inheritance: objectControlHtmlControlHtmlContainerControlRadTreeNode

Inherited Members HtmlContainerControl.TextContentHtmlContainerControl.InnerTextHtmlControl.FindParentContainer<TContainerControl>()HtmlControl.ValidateTag(string)HtmlControl.ValidateControl()HtmlControl.ParseResponseValue<T>(string, T)HtmlControl.GetAttributeAsString(string)HtmlControl.InitializeMappings(MappingsCollection)HtmlControl.GetRectangle()HtmlControl.IsVisible()HtmlControl.GetStyleValue(string)HtmlControl.GetStyle(string)HtmlControl.GetComputedStyleValue(string)HtmlControl.GetComputedStyle(string)HtmlControl.Parent<TContainerControl>()HtmlControl.Capture()HtmlControl.Capture(string, string)HtmlControl.Capture(string)HtmlControl.InvokeEvent(ScriptEventType)HtmlControl.InvokeEvent(ScriptEventType, bool)HtmlControl.InvokeEvent(ScriptEvent)HtmlControl.InvokeEvent(ScriptEvent, bool)HtmlControl.AddEventListener(string, EventHandler<JavascriptEventArgs>)HtmlControl.RemoveEventListener(string, EventHandler<JavascriptEventArgs>)HtmlControl.MouseClick()HtmlControl.MouseClick(MouseClickType)HtmlControl.MouseClick(MouseClickType, int, int)HtmlControl.MouseClick(MouseClickType, Point, OffsetReference)HtmlControl.MouseClick(MouseClickType, int, int, OffsetReference)HtmlControl.MouseHover()HtmlControl.MouseHover(Point)HtmlControl.MouseHover(int, int)HtmlControl.MouseHover(int, int, OffsetReference)HtmlControl.ScrollToVisible()HtmlControl.ScrollToVisible(ScrollToVisibleType)HtmlControl.ScrollToVisible(ScrollToVisibleType, Rectangle)HtmlControl.Download(bool, DownloadOption, string, int)HtmlControl.CallMethod(string)HtmlControl.CallMethod<T>(string)HtmlControl.CallMethod<T>(string, T)HtmlControl.GetValue<T>(string)HtmlControl.GetValue<T>(string, T)HtmlControl.GetValue<T>(string, bool)HtmlControl.GetValue<T>(string, bool, T)HtmlControl.SetValue<T>(string, T)HtmlControl.SetValue<T>(string, T, bool)HtmlControl.Focus()HtmlControl.DragTo(OffsetReference, Point, int, int)HtmlControl.DragTo(OffsetReference, int, int, Rectangle, OffsetReference, int, int)HtmlControl.DragTo(Point)HtmlControl.DragTo(int, int)HtmlControl.DragTo(HtmlControl)HtmlControl.DragTo(HtmlControl, OffsetReference, Point)HtmlControl.DragTo(OffsetReference, Point, HtmlControl)HtmlControl.DragTo(OffsetReference, Point, HtmlControl, OffsetReference, Point)HtmlControl.DragTo(OffsetReference, int, int, bool, HtmlControl, OffsetReference, int, int, bool)HtmlControl.DragToWindowLocation(OffsetReference, int, int, bool, OffsetReference, int, int, bool)HtmlControl.ToString()HtmlControl.AsjQueryControl()HtmlControl.GetElementByTagNameClientSideLocatorHtmlControl.GetElementByIdClientSideLocatorHtmlControl.FindHtmlControl.ScrollTopHtmlControl.ScrollLeftHtmlControl.WaitHtmlControl.IDHtmlControl.CssClassHtmlControl.AttributesHtmlControl.MappingsHtmlControl.StylesHtmlControl.EventsHtmlControl.TagNameHtmlControl.ChildNodesHtmlControl.IsActiveElementHtmlControl.IsEnabledControl.Refresh()Control.AssignFailed(Exception)Control.SetTelerikComponentsVersion(TelerikComponentsVersion?)Control.MatchControl(Element, FindParam)Control.GetFamilyElement(int, Element)Control.ThrowOnInvalidAssignmentControl.TelerikComponentsVersionControl.IsRefreshControl.BaseElementControl.OwnerBrowserControl.Locator

Constructors

RadTreeNode()

Initializes a new instance of the RadTreeNode class.

Declaration

cs-api-definition
public RadTreeNode()

RadTreeNode(Element)

Initializes a new instance of the RadTreeNode class.

Declaration

cs-api-definition
public RadTreeNode(Element element)

Parameters

element

Element

Properties

Category

Get or set the category of this node.

Declaration

cs-api-definition
public string Category { get; set; }

Property Value

string

Checkable

Get whether the tree node contains check box so that it can be checked.

Declaration

cs-api-definition
public bool Checkable { get; }

Property Value

bool

Checked

Get or set whether the node is checked.

Declaration

cs-api-definition
public bool Checked { get; set; }

Property Value

bool

ClientSideLocator

Get the Client side locator - call method.

Declaration

cs-api-definition
public override string ClientSideLocator { get; }

Property Value

string

Overrides HtmlControl.ClientSideLocator

ContextMenuId

Get or set the ID of the context menu.

Declaration

cs-api-definition
public string ContextMenuId { get; set; }

Property Value

string

ContextMenuShown

Get whether the context menu (if such is set for this node) is shown.

Declaration

cs-api-definition
public bool ContextMenuShown { get; }

Property Value

bool

EditInputElement

Get the node edit input element.

Declaration

cs-api-definition
public Element EditInputElement { get; }

Property Value

Element

Enabled

Get or set whether the node is enabled.

Declaration

cs-api-definition
public bool Enabled { get; set; }

Property Value

bool

Expandable

Check whether the node is expandable.

Declaration

cs-api-definition
public bool Expandable { get; }

Property Value

bool

Expanded

Get or set whether this node is expanded.

Declaration

cs-api-definition
public bool Expanded { get; set; }

Property Value

bool

HasChildren

Check whether the node has children.

Declaration

cs-api-definition
public bool HasChildren { get; }

Property Value

bool

HasContextMenu

True if context menu is available, false otherwise.

Declaration

cs-api-definition
public bool HasContextMenu { get; }

Property Value

bool

HierarchicalIndex

Get the hierarchical index of the node in the nodes collection of the treeview.

Declaration

cs-api-definition
public string HierarchicalIndex { get; }

Property Value

string

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.

Declaration

cs-api-definition
public int Index { get; }

Property Value

int

IsInEditMode

Get whether the tree node is in edit mode.

Declaration

cs-api-definition
public bool IsInEditMode { get; }

Property Value

bool

Level

Get the level of the node.

Declaration

cs-api-definition
public int Level { get; }

Property Value

int

LocatorExpression

Get the FindParam that defines the pattern for a treeview node.

Declaration

cs-api-definition
public override IFindExpression LocatorExpression { get; }

Property Value

IFindExpression

Overrides Control.LocatorExpression

NavigateUrl

Get or set the navigate url of this item.

Declaration

cs-api-definition
public string NavigateUrl { get; set; }

Property Value

string

NodeValue

Get the value set for this node.

Declaration

cs-api-definition
public string NodeValue { get; }

Property Value

string

Nodes

Get the list of child nodes of the treenode.

Declaration

cs-api-definition
public IList<RadTreeNode> Nodes { get; }

Property Value

IList<RadTreeNode>

ParentNode

Get the parent node of this node. Returns 'null' for the root nodes.

Declaration

cs-api-definition
public RadTreeNode ParentNode { get; }

Property Value

RadTreeNode

PostBack

Get whether the postback of the node is enabled.

Declaration

cs-api-definition
public bool PostBack { get; set; }

Property Value

bool

Selected

Get or set whether this node is selected.

Declaration

cs-api-definition
public bool Selected { get; set; }

Property Value

bool

ShouldNavigate

Check whether the item should navigate.

Declaration

cs-api-definition
public bool ShouldNavigate { get; }

Property Value

bool

Target

Get or set the target of the node.

Declaration

cs-api-definition
public string Target { get; set; }

Property Value

string

Text

Get or set text of the node.

Declaration

cs-api-definition
public string Text { get; set; }

Property Value

string

ToolTip

Get or set the tooltip of the node. If a ToolTip is not set, returns 'null'.

Declaration

cs-api-definition
public string ToolTip { get; set; }

Property Value

string

Visible

Get whether this node is visible.

Declaration

cs-api-definition
public bool Visible { get; }

Property Value

bool

Methods

AssignElement(Element)

Assign the DOM element to be the RadTreeNode control.

Declaration

cs-api-definition
public override void AssignElement(Element e)

Parameters

e

Element

Overrides HtmlContainerControl.AssignElement(Element)

Check()

Check the node if it is not already checked.

Declaration

cs-api-definition
public void Check()

Click()

Click the node or Navigate if the NavigateUrl is set.

Declaration

cs-api-definition
public override void Click()

Overrides HtmlControl.Click()

Click(bool)

Click the item or Navigate if the NavigateUrl is set.

Declaration

cs-api-definition
public override void Click(bool isClosing)

Parameters

isClosing

bool

Overrides HtmlControl.Click(bool)

Collapse()

Collapse the node if it is not already collapsed.

Declaration

cs-api-definition
public void Collapse()

ControlAssert()

Get RadControlAssert instance initialized for this control.

Declaration

cs-api-definition
public RadControlAssert ControlAssert()

Returns

RadControlAssert

RadControlAssert instance initialized for this control.

Disable()

Disables the node.

Declaration

cs-api-definition
public void Disable()

DragAndDropTo(HtmlControl)

Drag and drop the node to the specified control. Drops into the center of the element.

Declaration

cs-api-definition
public void DragAndDropTo(HtmlControl destination)

Parameters

destination

HtmlControl

The destination control.

DragAndDropTo(RadTreeNode)

Drag and drop the node to the specified node.

Declaration

cs-api-definition
public void DragAndDropTo(RadTreeNode node)

Parameters

node

RadTreeNode

The target node to drop to.

DragAndDropWithOffset(int, int)

Drag and drop the node with the specified x and y offset.

Declaration

cs-api-definition
public void DragAndDropWithOffset(int offsetX, int offsetY)

Parameters

offsetX

int

offsetY

int

EditNode()

Makes node in edit mode.

Declaration

cs-api-definition
public void EditNode()

Enable()

Enables the node.

Declaration

cs-api-definition
public void Enable()

Expand()

Expand the node if it is not already expanded.

Declaration

cs-api-definition
public void Expand()

FindNode(Predicate<RadTreeNode>)

Find node by given predicate.

Declaration

cs-api-definition
public RadTreeNode FindNode(Predicate<RadTreeNode> predicate)

Parameters

predicate

Predicate<RadTreeNode>

The predicate used as search criteria, i.e. "node => node.NodeText == myNodeText".

Returns

RadTreeNode

The node matching the given criteria or null if nothing matches the search.

FindNodeByText(string)

Finds node by Text.

Declaration

cs-api-definition
public RadTreeNode FindNodeByText(string nodeText)

Parameters

nodeText

string

Returns

RadTreeNode

FindNodeByValue(string)

Finds node by Value.

Declaration

cs-api-definition
public RadTreeNode FindNodeByValue(string nodeValue)

Parameters

nodeValue

string

Returns

RadTreeNode

FindNodes(Predicate<RadTreeNode>)

Get a list of nodes matching the given predicate.

Declaration

cs-api-definition
public IList<RadTreeNode> FindNodes(Predicate<RadTreeNode> predicate)

Parameters

predicate

Predicate<RadTreeNode>

The predicate, i.e. (node => node.NodeText == myText).

Returns

IList<RadTreeNode>

The nodes matching the given predicate.

Highlight()

Highlight the node.

Declaration

cs-api-definition
public void Highlight()

Navigate()

Navigate if NavigateUrl is set.

Declaration

cs-api-definition
public void Navigate()

Select()

Select the node.

Declaration

cs-api-definition
public void Select()

ShowContextMenu()

Show the context menu.

Declaration

cs-api-definition
public void ShowContextMenu()

Toggle()

Toggle the expand/collapse of the node.

Declaration

cs-api-definition
public void Toggle()

UNHighlight()

Unhighlight the node.

Declaration

cs-api-definition
public void UNHighlight()

Uncheck()

UnCheck the node if it is checked.

Declaration

cs-api-definition
public void Uncheck()

Unselect()

UnSelect the node.

Declaration

cs-api-definition
public void Unselect()