SuspendSeriesNotification/ResumeSeriesNotification not working?

Hi, is there any working sample of how to use SuspendSeriesNotification/ResumeSeriesNotification? I have this:

       chartMain.SuspendSeriesNotification()

        For i = 0 To 10
            Minutes.Add(New Minute With {.Minute = Minutes.Last.Minute.AddMinutes(1), .Price = 100}) 'Minutes is the itemssource for the chart series
        Next

        chartMain.ResumeSeriesNotification()

but the application goes into break mode. It works fine when commenting out the suspend and resume lines. I'm using 16.1.0.24.

Thanks.

3 Replies

MK Muneesh Kumar G Syncfusion Team March 12, 2018 06:45 AM UTC

Hi Tom, 
 
Thanks for using Syncfusion products.  
 
We have analyzed your query, we have prepared a sample for SuspendSeriesNotification/ResumeSeriesNotification. Please find the sample from the following location.  
 
 
We are unable to reproduce the reported problem at our end. If you still face the problem means please revert us by modifying the sample based on your application along with replication procedure. This would be helpful for us to serve you. 
Thanks, 
Muneesh Kumar G. 
 



TO Tom March 12, 2018 08:41 AM UTC

Hi Muneesh, thank you for your reply.

Your sample works fine, but I can't make it work with my application. In the simplest case, if you put the suspend/resume block in a button event, it will fail. 

However my main problem is this, I have a separate thread which continuously adds new items to the itemssource collection randomly many times per second on average. I would rather not have the chart update every time the itemssource changes as this will slow down the UI responsiveness, or freeze altogether. So, my idea is to make the chart always suspended, and have a timer which will "unsuspend" and "resuspend" the chart every 10 seconds or so, so that every 10 seconds the chart will update with the new data in the itemssource collection.

I've attached the modified sample where you can test both the button and the thread methods. All the code changes are in the MainWindow.xaml.vb.

Attachment: VB_SfChart949567586Tom_596e3a84.rar


MK Muneesh Kumar G Syncfusion Team March 15, 2018 11:46 AM UTC

Hi Tom,  
 
We are able to reproduce the issue " Suspend and resume notification throws exception while updating data dynamically" at our end and we have logged a defect report. The fix for the reported issue will be available in our 2018 Volume 1 SP1 release which is expected to be rolled out at the end of March, 2018.  
 
Thanks, 
Muneesh Kumar G. 


Loader.
Up arrow icon