TreeView
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class TreeView : WidgetBase, IWidget, IHtmlAttributesContainer, IScriptableComponent, INavigationItemComponent<TreeViewItem>, INavigationItemContainer<TreeViewItem>
Inheritance: objectWidgetBaseTreeView
Implements:
Inherited Members
Constructors
public TreeView(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator, INavigationItemAuthorization authorization)
Properties
public ExpandableAnimation Animation { get; }
public INavigationItemAuthorization Authorization { get; }
Implements:
If set to true the widget will auto-scroll the containing element when the mouse/finger is close to the top/bottom of it.
public bool? AutoScroll { get; set; }
public TreeViewCheckboxesSettings Checkboxes { get; set; }
Sets the field of the data item that provides the icon name of the nodes. If an array, each level uses the field that is at the same index in the array, or the last item in the array.
public string[] DataIconField { get; set; }
Sets the field of the data item that provides the image URL of the TreeView nodes.
public string DataImageUrlField { get; set; }
public DataSource DataSource { get; }
public string DataSourceId { get; set; }
Sets the field of the data item that provides the sprite CSS class of the nodes. If an array, each level uses the field that is at the same index in the array, or the last item in the array.
public string DataSpriteCssClassField { get; set; }
public List<string> DataTextField { get; set; }
Sets the field of the data item that provides the link URL of the nodes.
public string DataUrlField { get; set; }
public TreeViewDragAndDropSettings DragAndDrop { get; }
Gets or sets a value indicating whether all the item is expanded.
public bool ExpandAll { get; set; }
true if expand all is enabled; otherwise, false. The default value is false
public bool HighlightPath { get; set; }
Gets or sets the item action.
public Action<TreeViewItem> ItemAction { get; set; }
Implements:
Gets the items of the treeview.
public IList<TreeViewItem> Items { get; }
Implements:
public bool LoadOnDemand { get; set; }
The text messages displayed in the widget. Use it to customize or localize the messages.
public TreeViewMessagesSettings Messages { get; set; }
public SecurityTrimming SecurityTrimming { get; set; }
Implements:
public int SelectedIndex { get; set; }
Sets the size of the component.
public ComponentSize? Size { get; set; }
public string TemplateHandler { get; set; }
public string TemplateId { get; set; }
public IUrlGenerator UrlGenerator { get; }
Implements:
Methods
public override IDictionary<string, object> Serialize()
Overrides:
Writes the HTML.
protected override void WriteHtml(HtmlTextWriter writer)
Overrides:
Writes the initialization script.
public override void WriteInitializationScript(TextWriter writer)
The writer.
Overrides: