Draw connections behind shapes

2 posts, 0 answers
  1. Itai
    Itai avatar
    33 posts
    Member since:
    Feb 2016

    Posted 08 May Link to this post

    It seems by default connections are drawn over shapes, and I couldn't find a way to change this. Is there a way to make it so connections are drawn behind shapes? In general, is there a way to control the z-level of shapes and connections? 

     

    Thanks. 

  2. Dimiter Topalov
    Admin
    Dimiter Topalov avatar
    355 posts

    Posted 10 May Link to this post

    Hello Itai,

    You can handle the dragEnd event of the Kendo UI Diagram (or other event of your choice, as required by the specific scenario), and call the widget's toBack() method, passing it the Diagram's connections, e.g.:

    function onDragEnd(e) {
      e.sender.toBack(e.sender.connections);
    }

    I hope this helps.

    Regards,
    Dimiter Topalov
    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