Last Updated: 20 Aug 2021 07:42 by ADMIN
Created by: Stuart
Comments: 0
Category: TreeView
Type: Bug Report

### Bug report

The attributes set through the "HtmlAttributes", "ContentHtmlAttributes", and "LinkHtmlAttributes"methods are not applied to the TreeView items.

### Reproduction of the problem

1. Create a TreeView and set attributes by using the "HtmlAttributes", "ContentHtmlAttributes", "LinkHtmlAttributes"methods:

    .Items(treeview =>
        treeview.Add().Text("My Documents")
        .SpriteCssClasses("k-icon k-i-globe")
        .HtmlAttributes(new { @class = "fairydust1" })
        .ContentHtmlAttributes(new { data_navigate = "navigate_content", @class = "trigger", title = "content_title" })
        .LinkHtmlAttributes(new { data_navigate = "navigate_link", @class = "trigger", title = "content_link" });

2. Run the page and inspect the TreeView item.

### Expected/desired behavior

The attributes are serialized and rendered.

### Environment

* **Kendo UI version: 2021.2.616
* **jQuery version: 1.12.4
* **Browser: [all]

Last Updated: 26 Oct 2020 10:01 by ADMIN

Bug report

Reproduction of the problem

  1. Run the attached sample project:
  2. A child node is returned as checked from the server.
  3. Note the difference between the state of the parent node checkbox in the Core TreeView (incorrect) and in the Kendo UI TreeView (correct).

Current behavior

The parent node's state remains "unchecked".

Expected/desired behavior

The parent node's state should be "indeterminate".


Attach a DataBound event handler to the TreeView:

<kendo-treeview name="DataRestrictionTree" load-on-demand="false" datatextfield="Name" on-data-bound="onDataBound" >

In the handler call the TreeView's updateIndeterminate API method:

function onDataBound(e) {
	var treeview = $("#DataRestrictionTree").data("kendoTreeView");


  • Kendo UI version: 2020.2.513
  • jQuery version: x.y
  • Browser: [all]
Last Updated: 10 Aug 2020 08:43 by ADMIN
Add a method(similar to total) that returns the total number of loaded items in the hierarchical dataSource.
Last Updated: 12 Mar 2019 23:40 by Aldermar
Created by: Aldermar
Comments: 1
Category: TreeView
Type: Feature Request
Hence, binding to Model and ViewBad will be feasible.