Unable to save and load shape connectors with custom positions

0 Answers 64 Views
Diagram
The Cowboy
Top achievements
Rank 1
The Cowboy asked on 17 Jan 2023, 12:35 PM

Hello, 

I'm trying to combine custom positions of shape connectors with the save and load functionality.  I've combined the following two examples in the dojo:

https://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/diagram/configuration/shapes.connectors.position 

https://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/diagram/methods/load

Dojo example: https://dojo.telerik.com/oqAloqOY/2 

As you can see after loading the saved model the custom connectors are gone. Is there any way to persist them or at least re-apply them after load?

Thanks

Nikolay
Telerik team
commented on 20 Jan 2023, 06:28 AM

Hi Jeff,

You can obtain the Diagram shapes and connections and pass them directly to the dataSource.data and the connectionsDataSource.data properties. The loading of the Diagram can be performed with the bringIntoView() method.

Please check out the following Dojo example:

Regards,

Nikolauy

No answers yet. Maybe you can help?

Tags
Diagram
Asked by
The Cowboy
Top achievements
Rank 1
Share this question
or