RadChart: WaitCursor during animation

3 posts, 0 answers
  1. Michael
    Michael avatar
    2 posts
    Member since:
    Nov 2011

    Posted 08 Dec 2011 Link to this post

    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. Michael
    Michael avatar
    2 posts
    Member since:
    Nov 2011

    Posted 09 Dec 2011 Link to this post

    Anybody a idea?
    Thanks in advance!
  3. UI for WPF is Visual Studio 2017 Ready
  4. Bartholomeo Rocca
    Bartholomeo Rocca avatar
    247 posts
    Member since:
    May 2006

    Posted 09 Dec 2011 Link to this post

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