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.
Unfortunately, activation email could not send to your email. Please try again.

All nodes are redrawn when the InsertNodesCmd is executed

Thread ID:

Created:

Updated:

Platform:

Replies:

28077 Apr 22,2005 03:22 PM May 23,2005 10:15 AM Windows Forms 4
loading
Tags: Diagram
Jeff Fansler
Asked On April 22, 2005 03:22 PM

I have a custom symbol that inherits from image symbol. I override draw in order to do my own drawing. What I''ve noticed is that my draw method is called every time I call the InsertNodesCmd. This makes sense most of the time, but I am creating a diagram programmatically and would like to disable drawing until all nodes are added. I tried suspendLayout on the diagram, but that doesn''t change anything. Is there any way to stop the drawing until I decide to re-enable it? Thanks, -Jeff Fansler

Administrator [Syncfusion]
Replied On April 25, 2005 12:05 PM

Hi Jeff, If you are running the 3.2 RC version of Essential Diagram, then you can use the Syncfusion.Windows.Forms.Diagram.Model.BeginUpdate()/EndUpdate(bool) methods to temporarily suspend diagram redraw. Please refer to the class reference documentation on these methods for additional information. Thanks, Prakash Surendra Syncfusion Inc.,

Jeff Fansler
Replied On May 18, 2005 04:51 PM

I upgraded to version 3.2 to resolve this issue and beginupdate/endupdate don''t seem to be working for me. The draw method is still being called on all my custom symbols. Any ideas? >Hi Jeff, > >If you are running the 3.2 RC version of Essential Diagram, then you can use the Syncfusion.Windows.Forms.Diagram.Model.BeginUpdate()/EndUpdate(bool) methods to temporarily suspend diagram redraw. Please refer to the class reference documentation on these methods for additional information. > >Thanks, >Prakash Surendra >Syncfusion Inc.,

Administrator [Syncfusion]
Replied On May 18, 2005 07:58 PM

Jeff, Model.BeingUpdate() and Model.EndUpdate(true) are working for me using v3.2.1 I tested it using my own custom symbol.

Jeff Fansler
Replied On May 23, 2005 10:15 AM

This was my fault. I was calling BeginUpdate/EndUpdate off of the diagram, not the model. Thanks for pointing me in the right direction. -Jeff >Jeff, > >Model.BeingUpdate() and Model.EndUpdate(true) are working for me using v3.2.1 > >I tested it using my own custom symbol.

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.

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.

;