Refresh Chart Series

2 posts, 0 answers
  1. Scott
    Scott avatar
    11 posts
    Member since:
    Oct 2012

    Posted 13 Feb 2015 Link to this post

    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.
  2. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 18 Feb 2015 Link to this post

    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.

     
Back to Top