Diagram Elements repositioned after adding to datasource

2 posts, 1 answers
  1. Ralph
    Ralph avatar
    17 posts
    Member since:
    May 2011

    Posted 28 Jan 2015 Link to this post

    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
  2. Answer
    Daniel
    Admin
    Daniel avatar
    2117 posts

    Posted 30 Jan 2015 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
Back to Top