DiagramLayoutComplete not called

2 posts, 0 answers
  1. Steve
    Steve avatar
    13 posts
    Member since:
    Aug 2008

    Posted 20 Sep 2014 Link to this post

    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;

    private void OnDiagramLayoutComplete(object sender, RoutedEventArgs routedEventArgs)
        // Code goes here

    Any ideas?

  2. Pavel R. Pavlov
    Pavel R. Pavlov avatar
    1236 posts

    Posted 23 Sep 2014 Link to this post

    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.

    Pavel R. Pavlov
    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.
Back to Top