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

Shape / Connection Linked List

2 Answers 105 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
SPARE GmbH
Top achievements
Rank 2
SPARE GmbH asked on 24 Jul 2012, 10:10 AM
Hy,

Is it possible to get a Linked List combined with Shape - Connection -- Shape etc.
As A Example

- Shape 1
   - Connection 1
        - Shape2
           - Connection 1
               - Shape 5
   - Connection 2
       - Shape 3

Kind Regards

Alfred

2 Answers, 1 is accepted

Sort by
0
Accepted
Miro Miroslavov
Telerik team
answered on 25 Jul 2012, 08:22 AM
Hello Alfred,

 The RadDiagram has a few very handy extension methods that you can use to achieve such a List.

public static IEnumerable<IConnection> GetOutgoingConnectionsForShape(this IGraph graph, IShape shape)
...
public static IEnumerable<IConnection> GetIncomingConnectionsForShape(this IGraph graph, IShape shape)

So you can easily query the Diagram to build such, just use this methods in a loop or recursion method.
Please let us know if you have any questions regarding their usage.
 

Regards,
Miro Miroslavov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
SPARE GmbH
Top achievements
Rank 2
answered on 25 Jul 2012, 08:42 AM
Hy Miro,

Thanks for the Answer.
That was exactly what i looking for.

Greetings

Alfred
Tags
Diagram
Asked by
SPARE GmbH
Top achievements
Rank 2
Answers by
Miro Miroslavov
Telerik team
SPARE GmbH
Top achievements
Rank 2
Share this question
or