This is a migrated thread and some comments may be shown as answers.

Dynamically modifying datasource

5 Answers 157 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Gary
Top achievements
Rank 1
Gary asked on 02 Jun 2014, 11:40 PM
I'm progressively adding children to the HierarchicalDataSource via AJAX calls that populate the items array of an exists data item with the returned results.

The only way I've found to refresh the diagram is to recreate the HierarchicalDataSource with the revised data, and then call diagram.setDataSource(...).

Is that the correct method? It seems a bit heavy handed to me.

Thanks,
Gary

5 Answers, 1 is accepted

Sort by
0
Hristo Germanov
Telerik team
answered on 04 Jun 2014, 02:29 PM
Hi Gary,

This is known issue. We will try to resolve it as soon as possible.

Regards,
Hristo Germanov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Kejal
Top achievements
Rank 1
answered on 12 Aug 2016, 02:41 PM
Do we have a solution for this now?
0
Kejal
Top achievements
Rank 1
answered on 12 Aug 2016, 02:42 PM
Is this issue resolved?
0
Kejal
Top achievements
Rank 1
answered on 12 Aug 2016, 02:45 PM
Is this issue resolved?
0
Vessy
Telerik team
answered on 15 Aug 2016, 10:45 AM
Hi Kejal,

The issue has been resolved by implementing a refresh() method, which forces the Diagram to reload its shapes data-source. You can test it here:
http://dojo.telerik.com/@veselinar/aKomi

Regards,
Vessy
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
Diagram
Asked by
Gary
Top achievements
Rank 1
Answers by
Hristo Germanov
Telerik team
Kejal
Top achievements
Rank 1
Vessy
Telerik team
Share this question
or