How to know when the RadChart is finished rendering

3 posts, 0 answers
  1. D Warren
    D Warren avatar
    10 posts
    Member since:
    Jul 2012

    Posted 02 Aug 2011 Link to this post

    I'm trying to render the RadChart as an image at the request of a user via a command. I need the command to be disabled until the RadChart is finished rendering otherwise it is possible for the rendered image to be missing parts of the chart. How do I know when the Rad Chart is finished rendering?
  2. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 05 Aug 2011 Link to this post

    Hello D Warren,

    Presently, there is no easy way to determine when the control has rendered completely. You can use the LayoutUpdated event handler, together with a timer, to ensure that the related control will be enabled accordingly. Another option is to use logic similar to this one:

    http://stackoverflow.com/questions/6820889/how-to-determine-when-a-wpf-user-control-has-completed-loading

    In any case, the logic will need to be executed asynchronously, as there is no mechanism which keeps track of the completion of the execution of the rendering or animations in the chart.
    I hope this information helps.

    Regards,
    Yavor
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. D Warren
    D Warren avatar
    10 posts
    Member since:
    Jul 2012

    Posted 05 Aug 2011 Link to this post

    Thanks for the reply. I also found this http://social.msdn.microsoft.com/Forums/en/wpf/thread/693fbedb-efa6-413e-ab66-530c6961d3fb It mostly talks about how WPF lacks the ability to sync the UI thread and the hidden Render thread, in otherwords WPF lacks the ability to know when rendering is truly complete for a single control. Thanks for the help though. If y'all ever figure out a way to know if the chart is done showing all of it's content please post the solution here.

    -Danny
Back to Top