TreeViewTagHelper

Example

Razor
<kendo-treeview>
    <animation></animation>
    <checkboxes></checkboxes>
    <drag-and-drop />
    <hierarchical-datasource></hierarchical-datasource>
    <items></items>
    <item-template></item-template>
    <messages />
</kendo-treeview>

ChildTags

Attributes

AttributeTypeDescription
nameStringSets the name of the component.
bind-toIEnumerable<TreeViewItemBase>Binds a list of items to the TreeView
data-image-url-fieldStringSets the field of the data item that provides the image URL of the TreeView nodes.
data-sprite-css-class-fieldStringSets 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.
data-text-fieldStringSets 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.
data-url-fieldStringSets the field of the data item that provides the link URL of the nodes.
drag-and-drop-enabledBooleanDisables (false) or enables (true) drag-and-drop of the nodes.
expand-allBooleanIf set to true expands all nodes. Applicable when local data binding is used.
deferredBooleanSuppress initialization script rendering. Note that this options should be used in conjunction with DeferredScripts method.
is-in-client-templateBooleanWhen placing a Tag Helper within a Kendo Template, set the type to text/html and add the is-in-client-template="true" attribute.
as-moduleBoolean
auto-bindBooleanIf 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.
auto-scrollBooleanIf set to true the widget will auto-scroll the containing element when the mouse/finger is close to the top/bottom of it.
data-source-idStringThe Id of the data source.
has-client-componentBoolean
load-on-demandBooleanIndicates 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.
on-changeStringTriggered when the selection has changed (either by the user or through the select method).
on-checkStringTriggered after the user has checked or unchecked a checkbox. If checkChildren is true, the event is triggered after all checked states are updated. This event has been introduced in internal builds after 2014.2.828.
on-collapseStringTriggered before a subgroup gets collapsed. Cancellable.
on-data-boundStringTriggered after the dataSource change event has been processed (adding/removing items);
on-dragStringTriggered while a node is being dragged.
on-dragendStringTriggered after a node has been dropped.
on-dragstartStringTriggered before the dragging of a node starts.
on-dropStringTriggered when a node is being dropped.
on-expandStringTriggered before a subgroup gets expanded.
on-kendo-keydownStringTriggered when the user presses a keyboard key while the TreeView is focused.
on-load-completedStringThis event triggers only when loadOnDemand is set to false - it indicates that all nodes that need to be loaded are ready and present as data items in the DataSource of the TreeView.
on-navigateStringTriggered when the user moves the focus on another node
on-selectStringTriggered when a node is being selected by the user. Cancellable.
sanitize-idBoolean
script-attributesIDictionary<String,Object>
sizeComponentSizeSets the size of the component.
templateStringTemplate for rendering each node.
template-handlerStringTemplate for rendering each node.
template-idStringTemplate for rendering each node.
template-viewIHtmlContentTemplate for rendering each node.
In this article
ExampleChildTagsAttributes
Not finding the help you need?
Contact Support