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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

catch an event of node deletion

Thread ID:

Created:

Updated:

Platform:

Replies:

73721 May 15,2008 03:32 PM UTC Jun 2,2008 10:05 AM UTC WinForms 5
loading
Tags: Diagram
Administrator [Syncfusion]
Asked On May 15, 2008 03:32 PM UTC

Hi,
How can I know when a node was deleted?
i am using version 5.1.1.19.
When the node is deleted the following event is invoked :
private void EventSink_NodeCollectionChanged(CollectionExEventArgs e)

But,the value of e.ChangeType is not
CollectionExChangeType.Remove.
Istead ,it is : CollectionExChangeType.Clear.




J.Nagarajan [Syncfusion]
Replied On May 26, 2008 01:17 PM UTC

Hi Shimon ,

Sorry for the delay in getting back to you. When removing a node from the diagram model, it will fire NodeCollectionChanged event and the ChangeType of "Remove works fine in v5.1.1.39. Please refer to my test sample and the attached video clip.

Video: www2.syncfusion.com/Samples/Video_73721.zip

Sample: www2.syncfusion.com/Samples/GroupNodeSelection.zip

Is it possible for you to upload us a minimal sample or modify the attached sample to reproduce the issue here? This will help us to analyse the issue further.

Thanks for using Syncfusion product.

Regards,
Nagaraj


Administrator [Syncfusion]
Replied On May 28, 2008 09:12 AM UTC

Hi,
Thanks for your reply,but the links which you inserted were brokenlinks.
In addition.You wrote that "ChangeType of 'Remove' works fine in v5.1.1.39" ,
but i use v5.1.1.19.
I solved this problem by using the event of Diagram.Model.EventSink.NodeCollectionChanging
instead.

I have another question :
I use the Symbol Designer v5.2.0.0 to create a pallet.I added an image symbol,and set the Tag property in the "Properties" area.I then saved the pallet(to edp file),but when i loaded the edp file,i saw that the Tag property was not saved.

Thanks,

Shimon.


J.Nagarajan [Syncfusion]
Replied On May 30, 2008 02:18 PM UTC

Hi Shimon ,

Tag field is NotSerialized property. We can use tag property for one session and we cannot save it in file (It is done for security reasons).Because you can insert in tag some custom type and in future you would not be able to deserialize it without custom type definition.

Please let me know if you have any questions.

Regards,
Nagaraj




Administrator [Syncfusion]
Replied On June 1, 2008 04:26 PM UTC

Hi Nagaraj,

So - what is the 'tag' built\used for?
How can we pass a value (specific for each symbol) when creating new instance on the diagram?

Thanks,
-Bracha


J.Nagarajan [Syncfusion]
Replied On June 2, 2008 10:05 AM UTC

Hi Bracha ,

Sorry for the inconvenience caused. We have already requested our developers to implement the serializing functionality for the nodes. This feature has been implemented in our latest source and this is available in v6.3.0.6 and the later releases. We would recommend you to download our latest version from the following page.

http://www.syncfusion.com/downloads/product/build.aspx

Unlock key:

If your Essential Studio license is current,you will be able to obtain the key to install this version from your account in DirectTrac. Otherwise, please contact your Syncfusion Sales Representative or e-mail salessupport@syncfusion.com.

Please let me know if you have any problem in our latest version.

Thanks,
Nagaraj



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.

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

;