Changing the z-index (order) of shapes and connections of Telerik RadDiagram

2 posts, 0 answers
  1. Nedim
    Nedim avatar
    11 posts
    Member since:
    Mar 2012

    Posted 20 Jun Link to this post

    I am using Telerik RadDiagram for building a diagram. The gray lines are over the shapes (requirements, development etc) in my diagram. Is there any way to put them behind the shapes?

    // ... getting ready the shape objects ...
    for (int i = 0, j = 0; i < monthCount + 1; i++, j = j + 2)
    {
    // ... getting ready the shape and connection objects...
    RadDiagram1.ShapesCollection.Add(shapeForLines[j]);
    RadDiagram1.ShapesCollection.Add(shapeForLines[j + 1]);
    RadDiagram1.ConnectionsCollection.Add(monthLine[i]);
    RadDiagram1.ShapesCollection.Add(labelMonth[i]);
    }
    for (int i = 0; i < 7; i++)
    {
    if (i < 6)
    {
    RadDiagram1.ShapesCollection.Add(shape[i]);
    }
    if (i < 7)
    {
    RadDiagram1.ShapesCollection.Add(label[i]);
    }
    }

  2. Vessy
    Admin
    Vessy avatar
    1389 posts

    Posted 23 Jun Link to this post

    Hi Nedim,

    You can control the position of all items in the Diagram through the Diagram's toBack() and toFornt() properties.

    You can find details on how to get reference to the Kendo UI diagram widget of RadDiagram in the following help article:
    http://docs.telerik.com/devtools/aspnet-ajax/controls/diagram/client-side-programming/overview

    Regards,
    Vessy
    Telerik
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top