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

RadChart: WaitCursor during animation

2 Answers 90 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 08 Dec 2011, 01:14 PM
Dear Community, dear Telerik - Team,

I´ve got a question on RadChart for WPF.
For coding i use c# on .net 4.0

Intro:
I use a Telerik RadChart for showing items of a observable collection.
I got an UI, on which you can enter specific parameters and then safe it as an entry to this collection by clicking a button as often as you wish.
By pressing a second button, the application turns on to the next page on which the Chart ist implemented.
The Chart itself is a RadChart working with bars. The data is displayed correctly and everything runs fine.

Problem:
The bars of the RadChart are animated and popping up from left to right.
I set the TotalAnimationDuration to 7 secs.
I want the mousecursor to be a WAITCURSOR as long as the animation is runnig, means, till every bar is finally displayed.

Is there any chance this is possible?

Thanks in advance!

2 Answers, 1 is accepted

Sort by
0
Michael
Top achievements
Rank 1
answered on 09 Dec 2011, 11:03 AM
Anybody a idea?
Thanks in advance!
0
Bartholomeo Rocca
Top achievements
Rank 1
answered on 09 Dec 2011, 05:01 PM
Hello Michael,

I do not think RadChart provides built-in support for this scenario but probably you can use a DispatcherTimer with Interval=7sec that you would start on page load with RadChart.Cursor=Wait, and then in the Timer.Tick event handler, you will stop the timer and will restore the cursor to Arrow.


Greetings,
Bart.
Tags
Chart
Asked by
Michael
Top achievements
Rank 1
Answers by
Michael
Top achievements
Rank 1
Bartholomeo Rocca
Top achievements
Rank 1
Share this question
or