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

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

1 Answer 177 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Ned
Top achievements
Rank 1
Ned asked on 20 Jun 2016, 06:06 PM

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]);
}
}

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 23 Jun 2016, 02:55 PM
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
Tags
Diagram
Asked by
Ned
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or