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
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:
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 >>
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.