This question is locked. New answers and comments are not allowed.
I'm having performance issues when setting the layout of an Organization Chart graph/tree using the Telerik RadDiagram control. The control has its collection gathered from a web service which has already been called before populating the tree. In my case, the collection consists of quite a lot of data which is hierarchical up to four levels. The overall `Shape` class generated for the graph exceeds 200 items. I believe you get the point on how many `Collection` classes are generated too.
Without setting the layout, although the data was quite a number, the above code was executed quite fast. But when I tried setting the layout,
The execution took forever. I am thinking of making a function when someone clicks on a node then the node expands. Can you help me on how to implement it? Thank you.
MyGraphSource graph = new MyGraphSource(); //This class implements IGraphSource//Starts populating the GraphSource with data//...<br>//...<br>//Ends populating the GraphSource with dataMyRadDiagram.GraphSource = graph;Without setting the layout, although the data was quite a number, the above code was executed quite fast. But when I tried setting the layout,
TreeLayoutSettings settings = new TreeLayoutSettings(){TreeLayoutType = TreeLayoutType.TipOverTree};settings.Roots.Add(MyRadDiagram.Shapes[0]);MyRadDiagram.Layout(LayoutType.Tree, settings);The execution took forever. I am thinking of making a function when someone clicks on a node then the node expands. Can you help me on how to implement it? Thank you.