We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Performance of Diagram Updating is Too Slow

Thread ID:

Created:

Updated:

Platform:

Replies:

119937 Aug 17,2015 05:58 AM UTC Aug 21,2015 03:59 AM UTC WinForms 3
loading
Tags: Diagram
Won K. Ham
Asked On August 17, 2015 05:58 AM UTC

Fellows. This is Won.

 

I have used a diagram (in windows) to represent a manufacturing plant, and there are lots of shapes for manufacturing resources, such as conveyors, sorters, and processors. The most problem of my application is too slow for updating the changes of shapes. I used Model.BeginUpdate() and Model.EndUpdate(). I found it takes long when Model.EndUpdate() is in process. Especially, if new shapes are added, updating time is even much more longer. I do not under stand what this situation is. Is there any possible solution to speed up for updating time? the number of shapes in a diagram model is about thousands.

 

Thank you.

 

Sincerely,

Won.


Naganathan Ganesh Babu [Syncfusion]
Replied On August 18, 2015 11:53 AM UTC

Hi Won,


Thanks for using Syncfusion products.


We suggest you to “Pause and Resume” the Diagram’s EventSink, Model.Eventsink, Model.BridgeManager and Model.HistoryManager to improve the performance of the diagramcontrol while loading large number of nodes. Please refer the below code example and sample for your references.

Here is the code:

[C#]


diagram1.BeginUpdate();
diagram1.EventSink.Pause();
diagram1.Model.EventSink.Pause();
diagram1.Model.BridgeManager.Pause();
diagram1.Model.HistoryManager.Pause();


//Populate nodes


diagram1.Model.HistoryManager.Resume();
diagram1.Model.BridgeManager.Resume();
diagram1.Model.EventSink.Resume();
diagram1.EventSink.Resume();
diagram1.EndUpdate();


Here is the sample:


Sample


Please let us know if you need further assistance.


Regards,


Naganathan K G


Won K. Ham
Replied On August 19, 2015 10:37 AM UTC

Hello. Naganathan.

 

Your solution was really working on my project. I really appreciate your help. 

Thank you again.


Sincerely,

Won.


Naganathan Ganesh Babu [Syncfusion]
Replied On August 21, 2015 03:59 AM UTC

Hi Won,
Thanks for your update.
We are happy to hear that your problem is resolved. Please let us know if you need any further assistance.
Regards,
Naganathan K G

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;