1) The RadChart gets data from RSS feed (in already mentioned demo) by one time load.
2) You can use Telerik's RadAjaxManager to "ajaxify" a regular timer control to get the data on preset time interval. For more information take a look at this demo - http://demos.telerik.com/aspnet-ajax/ajax/examples/common/ajaxifytimer/defaultcs.aspx
3) The chart is updated at server side. It renders an image and when refreshed on timer tick it needs time to download the new image and replace the old one, so a flicker might occur. Here is how you can workaround this approach:
RadChart renders a div
element with an img
element inside it. You can find it like this:
var div = document.getElementById('<%=RadChart1.ClientID %>');
var chart = div.children;
You can take advantage of the above structure when implementing caching. For example -- put a second chart in another element in the page with display:none
. The timer will update only the hidden image, while the visible will stay intact. Then take advantage of RadAjax's OnResponseEnd
I have attached a sample page showing this approach. You can adjust the constant in the setTimeout
method according to your environment conditions.
Hope this information helps.
All the best,
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