I am trying to load remote HierarchicalDataSource to Kendo-UI TreeList with loadOnDemand. I see that the data function is called with the response that consists the first element . But the data is not displayed in the TreeList, instead the message 'No records to display' appears.
Also have notice that the function hasChildren is not called. (BTW: this code works with TreeView)
Please advice.
6 Answers, 1 is accepted
0
Hello Itay,
The TreeList widget can only be bound with TreeListDataSource. The following example demonstrates load on demand - TreeList / Binding to remote data
Regards,
Nikolay Rusev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Itay
Top achievements
Rank 1
answered on 14 Dec 2015, 11:41 AM
Thanks Nikolay.
Is it possible to make TreeList load on demand?
0
Hello Itay,
The example linked in my previous post is demonstrating load-on-demand binding.
Regards,
Nikolay Rusev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Greg
Top achievements
Rank 1
answered on 19 Jul 2016, 08:24 PM
I'm trying to achieve the same thing (TreeList load on demand) - however, the example referenced doesn't illustrate this capability. What am I missing?
0
Hello Greg,
I will post the answers from ticket ID 1051689 here, so others can benefit as well:
The default behavior of the Kendo UI TreeList is to send a request for the child items only when a parent row is expanded. You can confirm this by exploring the Network tab in the browser's developers tools (F12) for the mentioned demo, or in the following dojo, based on the same example:
http://dojo.telerik.com/IjepA
The length of the dataSource's data is 1 in the beginning, and increases after expanding different items.
Regards,
Dimiter Topalov
Telerik by Progress
I will post the answers from ticket ID 1051689 here, so others can benefit as well:
The default behavior of the Kendo UI TreeList is to send a request for the child items only when a parent row is expanded. You can confirm this by exploring the Network tab in the browser's developers tools (F12) for the mentioned demo, or in the following dojo, based on the same example:
http://dojo.telerik.com/IjepA
The length of the dataSource's data is 1 in the beginning, and increases after expanding different items.
The implementation of the remote service, used by our online demos can be found in the following GitHub repository:
https://github.com/telerik/kendo-ui-demos-service
The controller, used in the discussed demo, can be found here:
https://github.com/telerik/kendo-ui-demos-service/blob/master/KendoCRUDService/Controllers/EmployeeDirectoryController.cs
https://github.com/telerik/kendo-ui-demos-service
The controller, used in the discussed demo, can be found here:
https://github.com/telerik/kendo-ui-demos-service/blob/master/KendoCRUDService/Controllers/EmployeeDirectoryController.cs
Regards,
Dimiter Topalov
Telerik by Progress
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
0
Greg
Top achievements
Rank 1
answered on 21 Jul 2016, 02:01 PM
Thanks Dimiter.