Telerik Forums RSShttp://www.telerik.com/urn:uuid:65e425e5-b062-42c1-a646-43a9125dd351http://www.telerik.com/forums/permalink/5SXkZWKwwUKmRkOpEl3TUQChart not updating with new dataI have a similar behaviour but not reproducable. It occurs only sometimes!?urn:uuid:af803316-c73f-4dd3-be12-8bcd47b54fbehttp://www.telerik.com/forums/permalink/FjOArz_H002-EovNR7VPvgChart not updating with new dataHi Niall,<br />
<br />
Thank you for the question.<br />
<br />
I have attached a sample project with a chart control where the data binding works as expected in different scenarios:
<ul>
<li>Change a property of the model class</li>
<li>Add new data to the items source collection</li>
<li>Set a new items source collection&nbsp;</li>
</ul>
Could you please take a look at the project and modify it in order to reproduce the erroneous behavior.<br />
<br />
I look forward to your reply.<br />
<br />
Regards,<br />
Rosy Topchiyska <br />
Telerik
<div class="forumBaloonTop">&nbsp;</div>
<div class="forumBaloon">
<p>Check out the <a href="http://www.telerik.com/platform" title="Telerik Platform"><strong>Telerik Platform</strong></a> - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.</p>
</div>
<div class="forumBaloonBottom">&nbsp;</div>urn:uuid:0179d8ea-474c-4ac0-8b0e-b97bfb3e343chttp://www.telerik.com/forums/permalink/6th5AUxHwEqLDrl7-z40PAChart not updating with new dataHi,<br />
<br />
I'm using the Universal&nbsp;RadCartesianChart with ScatterSplineAreaSeries in a WP8.1 app + can't seem to update the ItemsSource once it's already been shown (works great the first time I set the data). My scenario is that a various events on the page (ie. flipview change) will mean a new set of points need to get rendered in the chart.<br />
<br />
I've tried a multitude of techniques to get this working with no success (things also I see suggested for this control on other platforms) - it simply won't&nbsp;re-render the chart with&nbsp;new set&nbsp;of Data/Points I provided&nbsp;:<br />
<br />
For example : <br />
<br />
1) Used ObservableCollection&lt;&gt; for the data.<br />
2)&nbsp;Raised INotifyPropertyChanged events on class hosting this Collection.<br />
3) Tried directly clearing the ScatterSplineAreaSeries.ItemsSource to null + setting with new data.<br />
4)&nbsp;Tried (3) but then tried setting with new data on new thread using Core.Dispatcher.<br />
5) Tried calling various Update/Invalidate methods on the chart.<br />
<br />
None of these seem to work at all.<br />
<br />
I'm assuming if I&nbsp;instantiate a completely new instance of&nbsp;the entire control each time I want to change data that will likely work - but it's not a very efficient way to go (I want to it to be smooth/glitch free and not waste unneeded memory/cpu etc).<br />
<br />
Any suggestions - or is this a bug which needs an updated version?<br />
<br />
thanks<br />
<br />
Niall<br />
<br />