Class TreeView
The TreeView can be easily configured with the DOM element, such as div or ul. you can create a TreeView with a highly customizable look and feel.
Implements
System.Web.IHtmlString
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Syncfusion.JavaScript
Assembly: Syncfusion.EJ.dll
Syntax
public class TreeView : Control, IHtmlString
Constructors
TreeView()
Initializes a new instance of the TreeView class.
Declaration
public TreeView()
TreeView(String, TreeViewProperties)
Initializes a new instance of the TreeViewProperties class.
Declaration
public TreeView(string id, TreeViewProperties propModel)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | |
TreeViewProperties | propModel |
Properties
Model
Instance of the control properties class
Declaration
protected override object Model { get; }
Property Value
Type | Description |
---|---|
System.Object |
Overrides
PluginName
Gets the plugin name of the TreeView element as 'ejTreeView'.
Declaration
public override string PluginName { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
TagName
Gets the tag name of the TreeView element as 'div'.
Declaration
public override string TagName { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
TreeViewModel
Specifies the TreeView contol and its attributes
Declaration
public TreeViewProperties TreeViewModel { get; set; }
Property Value
Type | Description |
---|---|
TreeViewProperties |
Methods
CreateContainer(String)
Represents an HTML-encoded string of the TreeView control that should not be encoded again.
Declaration
public override HtmlString CreateContainer(string controlId)
Parameters
Type | Name | Description |
---|---|---|
System.String | controlId |
Returns
Type | Description |
---|---|
System.Web.HtmlString |
Overrides
CreateUnObtrusiveContainer(String)
Represents an HTML-encoded string of the TreeView control with directives.
Declaration
public override HtmlString CreateUnObtrusiveContainer(string controlId)
Parameters
Type | Name | Description |
---|---|---|
System.String | controlId |
Returns
Type | Description |
---|---|
System.Web.HtmlString |
Overrides
RenderControl(String)
Represents an HTML element of the TreeView control.
Declaration
public override void RenderControl(string controlId)
Parameters
Type | Name | Description |
---|---|---|
System.String | controlId |
Overrides
RenderItemContent(TreeViewBaseItem, HtmlTag)
Specifies to render the items content in treeview
Declaration
protected HtmlTag RenderItemContent(TreeViewBaseItem item, HtmlTag temDiv)
Parameters
Type | Name | Description |
---|---|---|
TreeViewBaseItem | item | |
HtmlTag | temDiv |
Returns
Type | Description |
---|---|
HtmlTag |
RenderItems()
Rendering the treeview items
Declaration
protected string RenderItems()
Returns
Type | Description |
---|---|
System.String |
Implements
System.Web.IHtmlString