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

Chart Blinks on Ajax Refresh

1 Answer 246 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Brian Azzi
Top achievements
Rank 2
Brian Azzi asked on 17 Jun 2010, 10:12 PM
Hello,

I have a RadChart that I am rendering on page load. At regular intervals (5-10 seconds for example), I want to "refresh" the data contents of the chart. I am currently using a RadAjaxManager instance, and am using ajaxManager.ajaxRequest to initiate the callback request.

This works fine, but has one very visual drawback... the chart basically "blinks" during every refresh. (I can add a loading panel, but this in and of itself doesn't work very well for items that are constantly being refreshed at regular intervals).

Does anyone know of a way to prevent this? (The grid control for example does not "flash" or "blink" upon a rad ajax postback). Is there a way to "trick it by having two charts and only making the refreshed one visible after the callback is finished / basically swapping them in and out (pretty hacky, I know, but I have a lot of time invested in making this chart work!!!). 

Thanks in advance!
-Brian

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 22 Jun 2010, 01:27 PM
Hi Brian,

Please, find attached a small example, showing how to switch images. You can change the timeout constant as per your environment.

Kind regards,
Ves
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Chart (Obsolete)
Asked by
Brian Azzi
Top achievements
Rank 2
Answers by
Ves
Telerik team
Share this question
or