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

Refresh Chart Series

1 Answer 41 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Scott
Top achievements
Rank 1
Scott asked on 13 Feb 2015, 08:06 PM
If I bind the view model for a chart dynamically, when the chart is not actually visible on the page, the series does not show up whenever the chart becomes visible.  Is there a simple way to "refresh" a chart?  In other words, to tell the chart to re-display its series from its view model?  Thanks.

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 18 Feb 2015, 09:13 AM
Hi Scott,

The fact that there is no series shown when the chart becomes visible is unexpected. The series should actually be shown when the chart is shown. I have attached a small example following your description and displaying the series as expected. If still needed, there is a method RadChartBase.InvalidateUI which does exactly this -- invalidates the control UI.

Best regards,
Ves
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Chart
Asked by
Scott
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or