Kendo.Mvc.UI.TreeView

Kendo UI TreeView component

Properties

Items

Gets the items of the treeview.

ItemAction

Gets or sets the item action.

ExpandAll

Gets or sets a value indicating whether all the item is expanded.

AutoBind

If set to false the widget will not bind to the data source during initialization. In this case data binding will occur when the change event of the data source is fired. By default the widget will bind to the data source specified in the configuration.

AutoScroll

If set to true the widget will auto-scroll the containing element when the mouse/finger is close to the top/bottom of it.

Checkboxes

If true or an object, renders checkboxes beside each node.

DataImageUrlField

Sets the field of the data item that provides the image URL of the TreeView nodes.

DataSpriteCssClassField

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.

DataTextField

Sets the field of the data item that provides the text content 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.

DataUrlField

Sets the field of the data item that provides the link URL of the nodes.

DragAndDrop

Disables (false) or enables (true) drag-and-drop of the nodes.

LoadOnDemand

Indicates whether the child DataSources should be fetched lazily when parent groups get expanded. Setting this to false causes all child DataSources to be loaded at initialization time.

Messages

The text messages displayed in the widget. Use it to customize or localize the messages.

Template

Template for rendering each node.

TemplateId

The id of the script element used for Template

Methods

SerializeSettings

Serialize current instance to Dictionary