Unplanned
Last Updated: 01 Jul 2025 17:20 by Walter
Created by: Walter
Comments: 0
Category: TreeView
Type: Feature Request
1

Hello, 

I have a treeview that is getting the first items which are locations, then it loads divisions as its children. I want to have the treeview load a top item called "Locations" that is static. It will need to be expanded and load all the locations under it. Then when I click on a location it loads the divisions. The locations and divisions will be populated by a call to the controller and action. I have yet figured out how to do this and is it even possible? Here is the code I have right now. You will see for now that I am loading a div with the location icon and "Locations" as the text, but I would like this to be the top root level of the treeview.

 

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]
Unplanned
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.
Unplanned
Last Updated: 12 Mar 2019 23:40 by Aldermar
Created by: Aldermar
Comments: 1
Category: TreeView
Type: Feature Request
3
Hence, binding to Model and ViewBad will be feasible.