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

Represents a base class for TreeView items.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class TreeViewItemBase

Inheritance: objectTreeViewItemBase

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

C#
public TreeViewItemBase()

Properties

Specifies whether the item is initially checked. True by default.

C#
public bool? Checked { get; set; }

Specifies the attributes added to the content element of the item.

C#
public IDictionary<string, object> ContentHtmlAttributes { get; set; }

Specifies whether the item is initially enabled. True by default.

C#
public bool? Enabled { get; set; }

Specifies whether the item is initially expanded

C#
public bool? Expanded { get; set; }

Specifies whether the item has children

C#
public bool? HasChildren { get; set; }

Specifies the attributes added to the item

C#
public IDictionary<string, object> HtmlAttributes { get; set; }

Specifies the icon of the item

C#
public string Icon { get; set; }

Specifies the data-id attribute of the item

C#
public string Id { get; set; }

Specifies the attributes added to the item's image.

C#
public IDictionary<string, object> ImageHtmlAttributes { get; set; }

Specifies the URL of the image displayed by the item

C#
public string ImageUrl { get; set; }

Defines the child items of the current item.

C#
public IEnumerable<TreeViewItemBase> Items { get; set; }

Specifies the attributes added to the item's element

C#
public IDictionary<string, object> LinkHtmlAttributes { get; set; }

Specifies whether the item is initially selected

C#
public bool? Selected { get; set; }

Specifies the class name for the sprite image displayed by the item

C#
public string SpriteCssClass { get; set; }

Specifies the text displayed by the item

C#
public string Text { get; set; }

Specifies the URL that the item will link to. Used for navigational trees.

C#
public string Url { get; set; }

Methods

Serializes the defined settings.

C#
public Dictionary<string, object> Serialize()
Returns:

Dictionary<string, object>