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

How to know when the RadChart is finished rendering

2 Answers 170 Views
Chart
This is a migrated thread and some comments may be shown as answers.
D Warren
Top achievements
Rank 1
D Warren asked on 02 Aug 2011, 08:19 PM
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 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 05 Aug 2011, 12:03 PM
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 >>
0
D Warren
Top achievements
Rank 1
answered on 05 Aug 2011, 05:24 PM
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
Tags
Chart
Asked by
D Warren
Top achievements
Rank 1
Answers by
Yavor
Telerik team
D Warren
Top achievements
Rank 1
Share this question
or