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

DiagramLayoutComplete not called

1 Answer 66 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 21 Sep 2014, 04:38 AM
I derived a class from RadDiagram and attached device handlers to handle events. One event I want to handle is DiagramLayoutComplete, but the handler never seems to get called. Under what conditions should this event be raised?

In constructor:
DiagramLayoutComplete += OnDiagramLayoutComplete;

Handler:
private void OnDiagramLayoutComplete(object sender, RoutedEventArgs routedEventArgs)
{
    // Code goes here
}

Any ideas?
‚Äč

1 Answer, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 23 Sep 2014, 06:05 AM
Hello Steve,

I already answered to this question in your ticket, but I will paste the same answer here, so that others from the community can find it.

I tried to reproduce the reported issue on our side with our latest official release and it seems that the code works as expected. Let me try to explain the DiagramLayoutComplete event. This event is designed to indicate when a Layout operation is complete. The Layout operation is actually an algorithm which arranges the existing shapes and connections on the diagraming surface. This operation is usually triggered by the RadDiagram.LayoutAsync() method. In other words you need to call that method and when the algorithm is finished with arranging the items, the DiagramLayoutComplete event will be invoked.

I hope this helps.

Regards,
Pavel R. Pavlov
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
Diagram
Asked by
Steve
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Share this question
or