New to Telerik UI for WinForms? Start a free 30-day trial

Supplies child nodes to a tree view when a node's child collection is requested.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public abstract class TreeNodeProvider : IDisposable

Inheritance: objectTreeNodeProvider

Implements: IDisposable

Constructors

Creates a provider associated with the specified tree view element.

C#
public TreeNodeProvider(RadTreeViewElement treeView)
Parameters:treeViewRadTreeViewElement

The element whose nodes this provider supplies.

Properties

Gets a value indicating whether this instance is suspended.

C#
public bool IsSuspended { get; }
Property Value:

true if this instance is suspended; otherwise, false.

Gets or sets a value indicating weather the changes in the child collections in Object Relational Binding mode will be reflected automatically.

C#
public bool ReflectInnerObjectRelationChanges { get; set; }

Gets the tree view.

C#
public RadTreeViewElement TreeView { get; }
Property Value:

The tree view.

Methods

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

C#
public virtual void Dispose()

Implements: IDisposable.Dispose()

Gets the child nodes to load for a parent.

C#
public abstract IList<RadTreeNode> GetNodes(RadTreeNode parent)
Parameters:parentRadTreeNode

The node whose child collection is being loaded; null can represent the root.

Returns:

IList<RadTreeNode>

The child nodes to add, or null or an empty list when there are no nodes to add.

Resets this instance.

C#
public virtual void Reset()

Resumes the update.

C#
public virtual void ResumeUpdate()

Sets the current.

C#
public virtual void SetCurrent(RadTreeNode node)
Parameters:nodeRadTreeNode

The node.

Suspends the update.

C#
public virtual void SuspendUpdate()