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

This Class defiens the RadTreeNode object.

The RadTreeView control is made up of nodes. Nodes which are immediate children of the treeview are root nodes. Nodes which are children of root nodes are child nodes.

A node usually stores data in two properties, the Text property and the Value property. The value of the Text property is displayed in the RadTreeView control, and the Value property is used to store additional data.

To create tree nodes, use one of the following methods:

  • Use declarative syntax to define nodes inline in your page or user control.
  • Use one of the constructors to dynamically create new instances of the RadTreeNode class. These nodes can then be added to the Nodes collection of another node or treeview.
  • Data bind the RadTreeView control to a data source.

When the user clicks a tree node, the RadTreeView control can navigate to a linked Web page, post back to the server or select that node. If the NavigateUrl property of a node is set, the RadTreeView control navigates to the linked page. By default, a linked page is displayed in the same window or frame. To display the linked content in a different window or frame, use the Target property.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class RadTreeNode : NavigationItem, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IMarkableStateManager, IStateManager, INamingContainer, IXmlSerializable, IControlItemContainer, IRadTreeNodeContainer, ICloneable, ITreeNodeBase

Inheritance: objectControlWebControlControlItemNavigationItemRadTreeNode...

Implements: IAttributeAccessorICloneableIComponentIControlBuilderAccessorIControlDesignerAccessorIControlItemContainerIDataBindingsAccessorIDisposableIExpressionsAccessorIMarkableStateManagerINamingContainerIParserAccessorIRadTreeNodeContainerIStateManagerITreeNodeBaseIUrlResolutionServiceIXmlSerializable...

Inherited Members NavigationItem.WriteXml(XmlWriter)NavigationItem.WriteXmlForChildren(XmlWriter)NavigationItem.ReadXml(XmlReader)NavigationItem.ReadXmlForChildren(XmlReader)NavigationItem.LoadChildViewState(object)NavigationItem.SaveChildViewState()NavigationItem.TrackChildViewState()NavigationItem.SetChildrenDirty()NavigationItem.AddedControl(Control, int)NavigationItem.ItemTextIsHTMLEncoded()ControlItem.GetHierarchicalIndex()ControlItem.IsChildControl(Control)ControlItem.GetAllChildren<TControlItem>()ControlItem.GetChildren<TControlItem>(Predicate<TControlItem>)ControlItem.FindChild<TControlItem>(Predicate<TControlItem>)ControlItem.IDControlItem.IndexControlItem.AccessKeyControlItem.TemplateControlItem.ContainerControlItem.RenderingCompatibilityControlItem.ChildrenWebControl.ApplyStyle(Style)WebControl.CopyBaseAttributes(WebControl)WebControl.CreateControlStyle()WebControl.LoadViewState(object)WebControl.TrackViewState()WebControl.MergeStyle(Style)WebControl.Render(HtmlTextWriter)WebControl.RenderBeginTag(HtmlTextWriter)WebControl.RenderEndTag(HtmlTextWriter)WebControl.SaveViewState()WebControl.AttributesWebControl.BackColorWebControl.BorderColorWebControl.BorderWidthWebControl.BorderStyleWebControl.ControlStyleWebControl.ControlStyleCreatedWebControl.StyleWebControl.EnableThemingWebControl.FontWebControl.ForeColorWebControl.HasAttributesWebControl.HeightWebControl.IsEnabledWebControl.SupportsDisabledAttributeWebControl.SkinIDWebControl.TabIndexWebControl.TagNameWebControl.WidthControl.ResolveAdapter()Control.HasEvents()Control.GetRouteUrl(object)Control.GetRouteUrl(string, object)Control.GetRouteUrl(RouteValueDictionary)Control.GetRouteUrl(string, RouteValueDictionary)Control.GetUniqueIDRelativeTo(Control)Control.ApplyStyleSheetSkin(Page)Control.OnDataBinding(EventArgs)Control.DataBind()Control.DataBind(bool)Control.DataBindChildren()Control.AddParsedSubObject(object)Control.EnsureID()Control.OnInit(EventArgs)Control.ClearChildState()Control.ClearChildControlState()Control.ClearChildViewState()Control.ClearEffectiveClientIDMode()Control.ClearCachedClientID()Control.Focus()Control.LoadControlState(object)Control.MapPathSecure(string)Control.OpenFile(string)Control.OnLoad(EventArgs)Control.OnPreRender(EventArgs)Control.BuildProfileTree(string, bool)Control.SaveControlState()Control.RenderChildren(HtmlTextWriter)Control.RenderControl(HtmlTextWriter)Control.RenderControl(HtmlTextWriter, ControlAdapter)Control.OnUnload(EventArgs)Control.Dispose()Control.RaiseBubbleEvent(object, EventArgs)Control.OnBubbleEvent(object, EventArgs)Control.CreateControlCollection()Control.CreateChildControls()Control.ResolveUrl(string)Control.ResolveClientUrl(string)Control.FindControl(string)Control.FindControl(string, int)Control.GetDesignModeState()Control.HasControls()Control.IsLiteralContent()Control.EnsureChildControls()Control.RemovedControl(Control)Control.SetDesignModeState(IDictionary)Control.SetRenderMethodDelegate(RenderMethod)Control.ClientIDModeControl.ClientIDControl.ClientIDSeparatorControl.ContextControl.AdapterControl.DesignModeControl.EventsControl.IsChildControlStateClearedControl.EnableViewStateControl.ViewStateModeControl.IsViewStateEnabledControl.NamingContainerControl.IdSeparatorControl.LoadViewStateByIDControl.PageControl.TemplateControlControl.ParentControl.TemplateSourceDirectoryControl.AppRelativeTemplateSourceDirectoryControl.SiteControl.VisibleControl.UniqueIDControl.HasChildViewStateControl.ControlsControl.ValidateRequestModeControl.ViewStateControl.ViewStateIgnoresCaseControl.ChildControlsCreatedControl.IsTrackingViewStateControl.DisposedControl.DataBindingControl.InitControl.LoadControl.PreRenderControl.Unloadobject.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

Initializes a new instance of the RadTreeNode class.

C#
public RadTreeNode()

Use this constructor to create and initialize a new instance of the RadTreeNode class using default values.

Example:
cs-api-definition
RadTreeNode node = new RadTreeNode();
node.Text = "News";
node.NavigateUrl = "~/News.aspx";

RadTreeView1.Nodes.Add(node);

Initializes a new instance of the RadTreeNode class with the specified text, value and URL.

C#
public RadTreeNode(string text, string value, string navigateUrl)
Parameters:textstring

The text of the node. The Text property is set to the value of this parameter.

valuestring

The value of the node. The Value property is set to the value of this parameter.

navigateUrlstring

The url which the node will navigate to. The NavigateUrl property is set to the value of this parameter.

Use this constructor to create and initialize a new instance of the RadTreeNode class using the specified text, value and URL.

Example:
cs-api-definition
RadTreeNode node = new RadTreeNode("News", "NewsValue", "~/News.aspx");

RadTreeView1.Nodes.Add(node);

Initializes a new instance of the RadTreeNode class with the specified text and value.

C#
public RadTreeNode(string text, string value)
Parameters:textstring

The text of the node. The Text property is set to the value of this parameter.

valuestring

The value of the node. The Value property is set to the value of this parameter.

Use this constructor to create and initialize a new instance of the RadTreeNode class using the specified text and value.

Example:
cs-api-definition
RadTreeNode node = new RadTreeNode("News", "NewsValue");

RadTreeView1.Nodes.Add(node);

Initializes a new instance of the RadTreeNode class with the specified text data.

C#
public RadTreeNode(string text)
Parameters:textstring

The text of the node. The Text property is set to the value of this parameter.

Use this constructor to create and initialize a new instance of the RadTreeNode class using the specified text.

Example:
cs-api-definition
RadTreeNode node = new RadTreeNode("News");

RadTreeView1.Nodes.Add(node);

Properties

Gets or sets a value indicating whether the node can be dragged and dropped.

C#
[ClientPersistedProperty]
public bool AllowDrag { get; set; }
Property Value:

True if the user is able drag and drop the node; otherwise false. The default value is true.

Gets or sets a value indicating whether the use can drag and drop nodes over this node.

C#
[ClientPersistedProperty]
public bool AllowDrop { get; set; }
Property Value:

True if the user is able to drag and drop nodes over this node; otherwise false. The default value is true.

Gets or sets a value indicating whether the use can edit the text of the node.

C#
[ClientPersistedProperty]
public bool AllowEdit { get; set; }
Property Value:

True if the node is editable; otherwise false. The default value is true.

Gets or sets the category of the node.

C#
[ClientPersistedProperty]
public string Category { get; set; }

The Category property is similar to the Value property. You can use it to associate custom data with the node.

Example:
C#
This example illustrates how to use the Category property during the <xref href="Telerik.Web.UI.RadTreeView.NodeDataBound?text=NodeDataBound" data-throw-if-not-resolved="false"></xref> event.

Gets or sets a value indicating whether the node is checkable. A checkbox control is rendered for checkable nodes.

C#
[ClientPersistedProperty]
public bool Checkable { get; set; }

If the CheckBoxes property set to true, RadTreeView automatically displays a checkbox next to each node. You can set the Checkable property to false for nodes that do not need to display a checkbox.

Gets or sets a value indicating whether the node is checked or not.

C#
public bool Checked { get; set; }
Property Value:

True if the node is checked; otherwise false. The default value is false

Gets the checked state of the tree node

C#
[Browsable(false)]
public TreeNodeCheckState CheckState { get; }
Property Value:

One of the TreeNodeCheckState values.

Gets or sets the Cascading Style Sheet (CSS) class applied to the content wrapper of the node.

C#
[ClientPersistedProperty]
public string ContentCssClass { get; set; }

You can use the ContentCssClass property to specify unique appearance for a node content area and its children. Useful when using CSS sprites.

Gets or sets a value indicating the ID of the RadTreeViewContextMenu displayed for the current node.

C#
[TypeConverter(typeof(TreeNodeContextMenuIDConverter))]
[ClientPersistedProperty]
public string ContextMenuID { get; set; }
Property Value:

A string representing the ID of the context menu associated with the current node. The default value is empty string.

If the ContextMenuID property is not set the first context menu from the ContextMenus collection will be used.

Gets or sets the Cascading Style Sheet (CSS) class applied by default to the node.

C#
[ClientPersistedProperty]
public override string CssClass { get; set; }

Overrides: WebControl.CssClass

By default the visual appearance of hovered nodes is defined in the skin CSS file. You can use the CssClass property to specify unique appearance for the node.

Gets the data item that is bound to the node

C#
[Browsable(false)]
public override object DataItem { get; set; }
Property Value:

An Object that represents the data item that is bound to the node. The default value is null (Nothing in Visual Basic), which indicates that the node is not bound to any data item. The return value will always be null unless accessed within a NodeDataBound event handler.

Overrides: ControlItem.DataItem

This property is applicable only during data binding. Use it along with the NodeDataBound event to perform additional mapping of fields from the data item to RadTreeNode properties.

Example:
cs-api-definition
private void RadTreeView1_NodeDataBound(object sender, Telerik.Web.UI.RadTreeNodeEventArgs e)
{
e.Node.ImageUrl = "image" + (string)DataBinder.Eval(e.Node.DataItem, "ID") + ".gif";
e.Node.NavigateUrl = (string)DataBinder.Eval(e.Node.DataItem, "URL");
}

Gets or sets the Cascading Style Sheet (CSS) class applied to the node when it is disabled.

C#
[ClientPersistedProperty]
public string DisabledCssClass { get; set; }

By default the visual appearance of disabled nodes is defined in the skin CSS file. You can use the DisabledCssClass property to specify unique appearance for a node when it is disabled.

Gets or sets a value specifying the URL of the image rendered when the node is disabled.

C#
[ClientPersistedProperty]
public string DisabledImageUrl { get; set; }

If the DisabledImageUrl property is not set the ImageUrl property will be used when the node is disabled.

Gets or sets a value indicating whether a context menu should be displayed for the current node.

C#
[ClientPersistedProperty]
public bool EnableContextMenu { get; set; }
Property Value:

True if a context menu should be displayed for the current node; otherwise false. The default value is false.

Use the EnableContextMenu property to disable the context menu for particular nodes.

Gets or sets a value indicating whether the node is enabled.

C#
[ClientPersistedProperty]
public override bool Enabled { get; set; }
Property Value:

true if the node is enabled; otherwise false. The default value is true.

Overrides: ControlItem.Enabled

Disabled nodes cannot be clicked, or expanded.

Gets or sets a value indicating whether the node is expanded.

C#
public bool Expanded { get; set; }
Property Value:

true if the node is expanded; otherwise, false. The default is false.

Gets or sets a value specifying the URL of the image rendered when the node is expanded.

C#
[ClientPersistedProperty]
public string ExpandedImageUrl { get; set; }

If the ExpandedImageUrl property is not set the ImageUrl property will be used when the node is expanded.

Gets or sets the expand behavior of the tree node.

When set to ExpandMode.ServerSide the RadTreeView will fire a server event (NodeExpand) so you can populate the node on demand.

C#
[ClientPersistedProperty]
public TreeNodeExpandMode ExpandMode { get; set; }
Property Value:

On of the TreeNodeExpandMode values. The default value is ClientSide.

Gets the full path (location) of the node.

C#
[Browsable(false)]
public string FullPath { get; }
Property Value:

A slash delimited path of the node. The path is constructed based on the Text property of the node and its parents. For example if the Text of the node it "Houston", its parent node is "Texas" and its parent (root) is "U.S.A", FullPath will return "U.S.A/Texas/Houston"

Gets or sets the Cascading Style Sheet (CSS) class applied to the node when the mouse hovers it.

C#
[ClientPersistedProperty]
public string HoveredCssClass { get; set; }

By default the visual appearance of hovered nodes is defined in the skin CSS file. You can use the HoveredCssClass property to specify unique appearance for a node when it is hoevered.

Gets or sets a value specifying the URL of the image rendered when the node is hovered with the mouse.

C#
[ClientPersistedProperty]
public override string HoveredImageUrl { get; set; }

Overrides: NavigationItem.HoveredImageUrl

If the HoveredImageUrl property is not set the ImageUrl property will be used when the node is hovered.

Gets or sets the URL to an image which is displayed next to the text of a node.

C#
[ClientPersistedProperty]
public override string ImageUrl { get; set; }
Property Value:

The URL to the image to display for the node. The default value is empty string which means by default no image is displayed.

Overrides: NavigationItem.ImageUrl

Use the ImageUrl property to specify a custom image that will be displayed before the text of the current node.

Example:
C#
<p>
       The following example demonstrates how to specify the image to display for
       the node using the <b>ImageUrl</b> property.
   </p>
<p>
        &lt;telerik:RadTreeView id="RadTreeView1" runat="server"&gt;<br />
         &lt;Nodes&gt;<br />
         &lt;telerik:RadTreeNode<strong>ImageUrl="~/Img/inbox.gif"</strong>
        Text="Index"&gt;&lt;/telerik:RadTreeNode&gt;<br />
         &lt;telerik:RadTreeNode<strong>ImageUrl="~/Img/outbox.gif"</strong>
        Text="Outbox"&gt;&lt;/telerik:RadTreeNode&gt;<br />
         &lt;telerik:RadTreeNode<strong>ImageUrl="~/Img/trash.gif"</strong>
        Text="Trash"&gt;&lt;/telerik:RadTreeNode&gt;<br />
         &lt;telerik:RadTreeNode<strong>ImageUrl="~/Img/meetings.gif"</strong>
        Text="Meetings"&gt;&lt;/telerik:RadTreeNode&gt;<br />
         &lt;/Nodes&gt;<br />
        &lt;/telerik:RadTreeView&gt;
</p>

Gets the level of the node.

C#
[Browsable(false)]
public int Level { get; }
Property Value:

An integer representing the level of the node. Root nodes are level 0 (zero).

A Section 508 element

C#
public string LongDesc { get; set; }

Gets or sets the URL to navigate to when the current node is clicked.

C#
[ClientPersistedProperty]
public override string NavigateUrl { get; set; }
Property Value:

The URL to navigate to when the node is clicked. The default value is empty string which means that clicking the current node will not navigate.

Overrides: NavigationItem.NavigateUrl

Setting the NavigateUrl property will disable node selection and as a result the NodeClick event won't be raised for the current node.

Gets the next sibling of the node.

C#
[Browsable(false)]
public RadTreeNode Next { get; }
Property Value:

The next sibling of the node or null (Nothing) if the node is last in its parent RadTreeNodeCollection.

Gets a RadTreeNodeCollection object that contains the child nodes of the current RadTreeNode.

C#
[Browsable(false)]
[PersistenceMode(PersistenceMode.InnerProperty)]
public RadTreeNodeCollection Nodes { get; }
Property Value:

A RadTreeNodeCollection that contains the child nodes of the current RadTreeNode. By default the collection is empty (the node has no children).

Implements: IRadTreeNodeContainer.Nodes

Use the Nodes property to access the child nodes of the RadTreeNode. You can also use the Nodes property to manage the child nodes - you can add, remove or modify nodes.

Example:
cs-api-definition
RadTreeNode node = RadTreeView1.FindNodeByText("Test");
node.Nodes[0].Text = "Example";
node.Nodes[0].NavigateUrl = "http://www.example.com";

Gets or sets the template for displaying the node.

C#
[TemplateContainer(typeof(RadTreeNode))]
[PersistenceMode(PersistenceMode.InnerProperty)]
[Browsable(false)]
[Bindable(false)]
public ITemplate NodeTemplate { get; set; }
Property Value:

An object implementing the ITemplate interface. The default value is a null reference (Nothing in Visual Basic), which indicates that this property is not set.

To specify common display for all nodes use the NodeTemplate property of the RadTreeView control.

Example:
C#
<p>The following template demonstrates how to add a Calendar control in certain
     node.</p>
     <p>ASPX:</p>
        <p>
&lt;telerik: RadTreeView runat="server" ID="RadTreeView1"&gt;
    &lt;Nodes&gt;
        &lt;telerik:RadTreeNode Text="Root Node" Expanded="True" &gt;
            &lt;Nodes&gt;
                &lt;telerik:RadTreeNode&gt;
                    &lt;NodeTemplate&gt;
                        &lt;asp:Calendar ID="Calendar1" runat="server"&gt;&lt;/asp:Calendar&gt;
                    &lt;/NodeTemplate&gt;
                &lt;/telerik:RadTreeNode&gt;
            &lt;/Nodes&gt;
        &lt;/telerik:RadTreeNode&gt;
    &lt;/Nodes&gt;
&lt;/telerik:RadTreeView&gt;
        </p>

Gets the parent IRadTreeNodeContainer.

C#
[Browsable(false)]
public IRadTreeNodeContainer Owner { get; }

Implements: IRadTreeNodeContainer.Owner

Gets the parent node of the current node.

C#
[Browsable(false)]
public RadTreeNode ParentNode { get; }
Property Value:

The parent node. If the the node is a root node null (Nothing) is returned.

Gets or sets a value indicating whether clicking on the node will postback.

C#
[ClientPersistedProperty]
public bool PostBack { get; set; }
Property Value:

True if the node should postback; otherwise false.

If you subscribe to the NodeClick all nodes will postback. To turn off that behavior you can set the PostBack property to false.

Gets the previous sibling of the node. Gets the previous node sibling in the tree structure or returns null if this is the first node in the respective node group.

C#
[Browsable(false)]
public RadTreeNode Prev { get; }
Property Value:

The previous sibling of the node or null (Nothing) if the node is first in its parent RadTreeNodeCollection.

C#
protected override IDictionary<string, string> PropertyMappings { get; }

Overrides: ControlItem.PropertyMappings

C#
protected virtual IRenderer Renderer { get; }

Gets or sets a value indicating whether the node is selected.

C#
public bool Selected { get; set; }
Property Value:

True if the node is selected; otherwise false. The default value is false.

By default, only one node can be selected. You can enable multiple node selection by setting the MultipleSelect property of the parent RadTreeView to true

Gets or sets the Cascading Style Sheet (CSS) class applied when node is selected.

C#
[ClientPersistedProperty]
public string SelectedCssClass { get; set; }

By default the visual appearance of selected nodes is defined in the skin CSS file. You can use the SelectedCssClass property to specify unique appearance for a node when it is selected.

Gets or sets a value specifying the URL of the image rendered when the node is selected.

C#
[ClientPersistedProperty]
public string SelectedImageUrl { get; set; }

If the SelectedImageUrl property is not set the ImageUrl property will be used when the node is selected.

C#
protected override HtmlTextWriterTag TagKey { get; }

Overrides: WebControl.TagKey

Gets or sets the target window or frame in which to display the Web page content associated with the current node.

C#
[TypeConverter(typeof(TargetConverter))]
[ClientPersistedProperty]
public override string Target { get; set; }
Property Value:

The target window or frame to load the Web page linked to when the node is clicked. Values must begin with a letter in the range of a through z (case insensitive), except for the following special values, which begin with an underscore:

_blankRenders the content in a new window without frames.
_parentRenders the content in the immediate frameset parent.
_selfRenders the content in the frame with focus.
_topRenders the content in the full window without frames.

The default value is empty string which means the linked resource will be loaded in the current window.

Overrides: NavigationItem.Target

Use the Target property to target window or frame in which to display the Web page content associated with the current node. The Web page is specified by the NavigateUrl property.

If this property is not set, the Web page specified by the NavigateUrl property is loaded in the current window.

The Target property is taken into consideration only when the NavigateUrl property is set.

Example:
C#
The following example demonstrates how to use the <b>Target</b> property

<p>
    <p>
       &lt;telerik:RadTreeView id="RadTreeView1" runat="server"&gt;<br />
    &lt;Nodes&gt;<br />
    &lt;telerik:RadTreeNode Text="News" NavigateUrl="~/News.aspx"
    <strong>Target="_self"</strong> /&gt;<br />
    &lt;telerik:RadTreeNode Text="External URL" NavigateUrl="http://www.example.com"
    <strong>Target="_blank"</strong> /&gt;<br />
    &lt;/Nodes&gt;<br />
    &lt;/telerik:RadTreeView&gt;</p>
</p>

Gets or sets the text displayed for the current node.

C#
[ClientPersistedProperty]
public override string Text { get; set; }
Property Value:

The text displayed for the node in the RadTreeView control. The default is empty string.

Overrides: ControlItem.Text

Use the Text property to specify or determine the text that is displayed for the node in the RadTreeView control.

Gets or sets the tooltip shown for the node when the user hovers it with the mouse

C#
[ClientPersistedProperty]
public override string ToolTip { get; set; }
Property Value:

A string representing the tooltip. The default value is empty string.

Overrides: WebControl.ToolTip

The ToolTip property is also used as the alt attribute of the node image (in case ImageUrl is set)

Gets the RadTreeView which the node is part of.

C#
[Browsable(false)]
public RadTreeView TreeView { get; }

Gets or sets custom (user-defined) data associated with the current node.

C#
[ClientPersistedProperty]
public override string Value { get; set; }
Property Value:

A string representing the user-defined data. The default value is emptry string.

Overrides: ControlItem.Value

Use the Value property to associate custom data with a RadTreeNode object.

Methods

C#
protected override void AddAttributesToRender(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

Overrides: WebControl.AddAttributesToRender(HtmlTextWriter)

Checks all child nodes of the current node.

C#
public void CheckChildNodes()

Creates a copy of the current RadTreeNode object.

C#
public RadTreeNode Clone()
Returns:

RadTreeNode

A RadTreeNode which is a copy of the current one.

Use the Clone method to create a copy of the current node. All properties of the clone are set to the same values as the current ones. Child nodes are copied as well.

Collapses recursively all child nodes of the node.

C#
public void CollapseChildNodes()

Expands all parent nodes of the node.

C#
public void CollapseParentNodes()
C#
protected override ControlItemCollection CreateChildItemCollection()
Returns:

ControlItemCollection

Overrides: ControlItem.CreateChildItemCollection()

C#
protected virtual IRenderer CreateNodeRenderer()
Returns:

IRenderer

Expands all child nodes of the node.

C#
public void ExpandChildNodes()

Expands all parent nodes of the node.

C#
public void ExpandParentNodes()

Gets a linear list of all nodes in the RadTreeNode.

C#
public IList<RadTreeNode> GetAllNodes()
Returns:

IList<RadTreeNode>

An IList<T> containing all nodes (from all hierarchy levels).

Returns the full path (location) of the node delimited by the specified character.

C#
public string GetFullPath(string delimiter)
Parameters:delimiterstring

The character to use as a delimiter

Returns:

string

Returns the full path of the node delimited by the specified character.

Inserts a node after the current node.

C#
public void InsertAfter(RadTreeNode node)
Parameters:nodeRadTreeNode

The node to be inserted.

Inserts a node before the current node.

C#
public void InsertBefore(RadTreeNode node)
Parameters:nodeRadTreeNode

The node to be inserted.

Checks if the current node is ancestor of another node.

C#
public bool IsAncestorOf(RadTreeNode node)
Parameters:nodeRadTreeNode

The node to check for.

Returns:

bool

True if the current node is ancestor of the other node; otherwise false.

Checks if the current node is descendant of another node node.

C#
public bool IsDescendantOf(RadTreeNode node)
Parameters:nodeRadTreeNode

The node to check for.

Returns:

bool

True if the current node is descendant of the other node; otherwise false.

C#
protected override void LoadFromDictionary(IDictionary<string, object> dictionary)
Parameters:dictionaryIDictionary<string, object>

Overrides: NavigationItem.LoadFromDictionary(IDictionary<string, object>)

Removes the node from the Nodes collection of its parent

C#
public void Remove()
Example:
cs-api-definition
RadTreeNode node = RadTreeView1.Nodes[0];
node.Remove();
C#
protected override void RenderContents(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

Overrides: WebControl.RenderContents(HtmlTextWriter)

C#
protected override void SetItemContainer(ControlItemContainer itemContainer)
Parameters:itemContainerControlItemContainer

Overrides: NavigationItem.SetItemContainer(ControlItemContainer)

Toggles Expand/Collapse state of the node.

C#
public void Toggle()

Unchecks all child nodes of the current node.

C#
public void UncheckChildNodes()