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

Diagram Elements repositioned after adding to datasource

1 Answer 76 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Ralph
Top achievements
Rank 1
Ralph asked on 28 Jan 2015, 03:55 PM
Hello,

I am attempting to create new data elements using drag and drop. When I add shapes directly to the diagram in the drop function and set the position the shape shows up at the expected location. However, I want to be able to create new data items and add them to the data source instead. I use the change function to set the position of the new element when it is added, however after this event fires the diagram reorders all of the elements in a line. I have created a sample in the Dojo: http://dojo.telerik.com/iMoja

Is there a property that I need to set to ensure this doesn't happen?

Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 30 Jan 2015, 11:24 AM
Hello Ralph,

The position of the shapes will be changed because the layout option is set. Removing the option will prevent the diagram from applying a layout when a new item is added.

Regards,
Daniel
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Diagram
Asked by
Ralph
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or