Completed
Last Updated: 23 Aug 2024 07:07 by ADMIN
Release 2024 Q4 (Nov)

### Bug report

The ExpandAll() option does not expand or collapse the TreeView nodes.

### Reproduction of the problem

1. Enable or disable the ExpandAll() option.

2. The nodes are not expanded/collapsed when the TreeView is initialized.

A REPL sample for reproduction: https://netcorerepl.telerik.com/mSuMEPkZ10ZA6l8P00

### Expected/desired behavior

All nodes must be initially expanded when ExpandAll(true) is set.

### Environment

* **Telerik UI for ASP.NET Core version: 2024.2.514
* **Browser: [all]

Unplanned
Last Updated: 15 Jul 2024 09:31 by ADMIN
Scheduled for 2024 Q3 (Aug)
Created by: Stuart
Comments: 0
Category: TreeView
Type: Bug Report
3

### 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:

@(Html.Kendo().TreeView()
    .Name("treeview-kendo2")
    .Items(treeview =>
    {
        treeview.Add().Text("My Documents")
        .SpriteCssClasses("k-icon k-i-globe")
        .Expanded(true)
        .Url("/")
        .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]

Completed
Last Updated: 18 Jan 2024 07:58 by ADMIN
Release 2024 Q1

Bug report

The Visible() API configuration is not applied correctly in the TreeView.

Reproduction of the problem

  1. Open the following Telerik REPL example.
  2. Set the Visible() API configuration to a given TreeView Item explicitly to false and notice that the item is not hidden.

Current behavior

The Visible() API configuration is not applied correctly.

Expected/desired behavior

The Visible() API configuration should be applied correctly similar to how the Menu wrapper:

https://netcorerepl.telerik.com/cnvbcckN56kmV36Z07

Environment

  • Kendo UI version: 2023.3.1114
  • jQuery version: x.y
  • Browser: [all]
Completed
Last Updated: 13 Oct 2023 10:52 by ADMIN
Release R1.2024-Increment.1(15.Nov.2023)

Bug report

The TreeView rendering in UI for ASP.NET MVC and UI for ASP.NET Core are not consistent. Setting the Id configuration for an item in UI for ASP.NET MVC renders a data-id attribute, that is missing in UI for ASP.NET Core.

Reproduction of the problem

  1. Use the following TreeVIew definition
@(Html.Kendo().TreeView()
        .Name("treeview-kendo")
        .TemplateId("treeview")
        .Checkboxes(c=>c.CheckChildren(true))
        .Items(treeview =>
        {
            treeview.Add()
                .Text("My Documents")
                .Id("MyId1");

            treeview.Add()
                .Text("My Documents 2")
                .Id("MyId2");                
        })
)

Current behavior

When using the UI for ASP.NET Core the rendered <li> element does not have the data-id attribute that is present in UI for ASP.NET MVC

<li role="treeitem" class="k-item k-treeview-item k-first" data-uid="a3c937fd-1c4a-46a6-81e1-e53e1a2aeb6e" aria-checked="false" aria-selected="false" aria-expanded="false" data-expanded="false" aria-setsize="2" aria-level="1">
  <div class="k-treeview-top k-treeview-top">
    <span class="k-checkbox-wrapper" role="presentation">
      <input id="_a3c937fd-1c4a-46a6-81e1-e53e1a2aeb6e" aria-hidden="true" type="checkbox" tabindex="-1" class="k-checkbox k-checkbox-md k-rounded-md">
    </span>
    <span class="k-treeview-leaf k-in">
      <span class="k-treeview-leaf-text">My Documents</span>
    </span>
  </div>
</li>

Expected/desired behavior

Rendering should be consistent and the data-id attribute added in UI for ASP.NET Core.

Workaround

Use the HtmlAttributes configuration to add the data-id attribute

treeview.Add()
    .HtmlAttributes(new {data_id = "MyId1"})
    .Text("My Documents")
    .Id("MyId1");

Environment

  • Kendo UI version: 2022.3.1109
  • Browser: [all]
  • Further details available in ticket 1588455
Unplanned
Last Updated: 19 Sep 2023 14:31 by Lara

Bug report

When a TreeView is bound to a new kendo.data.HierarchicalDataSource the binding of the widget breaks.

Reproduction of the problem

  1. Run this Dojo
  2. Notice that when the new DataSource is set the expand icon of the parent disappears.

In the wrappers the following error is thrown:
Uncaught TypeError: Cannot read properties of undefined (reading 'length')

Review the behavior in this Telerik Core REPL.

Expected/desired behavior

The TreeView should bind to the new data set successfully.

Environment

  • Kendo UI version: 2023.2.829
  • Browser: [all]
Declined
Last Updated: 26 Oct 2020 10:01 by ADMIN

Bug report

Reproduction of the problem

  1. Run the attached sample project:
    TelerikAspNetCoreApp100.zip
  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".

Workaround:

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");
	treeview.updateIndeterminate();
}

Environment

  • Kendo UI version: 2020.2.513
  • jQuery version: x.y
  • Browser: [all]