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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Error adding symbol in a Palette

Thread ID:

Created:

Updated:

Platform:

Replies:

145303 Jun 17,2019 06:32 AM UTC Jun 18,2019 05:22 AM UTC WinForms 3
loading
Tags: Diagram
Blanca Calderon
Asked On June 17, 2019 06:32 AM UTC

Hi,

If I try to add a symbol in a Palette I've got the next error (see video).

SymbolPalette paletteCur = symbolPaletteGroupBar.CurrentSymbolPalette;
                Group mysymbolmdl = new Group();              
                if (this.diagram1.Model.Nodes.Count != 0)
                {
                    int inicio;
                    mysymbolmdl.AppendChildren(this.diagram1.Model.Nodes, out inicio);// .AppendChild(nodeSeleccionado);
                }

Attachment: Video_1560759746_f02ccd2d.zip

Ramya Thirugnanam [Syncfusion]
Replied On June 17, 2019 10:39 AM UTC

Hi Blanca,  
 
We have analyzed the provided query. It seems that grouping is applied to  Diagram’s nodes directly while adding diagram nodes to the SymbolPalette. This is the root cause of the reported issue. We suggest you create the group node by cloning the diagram’s object while adding diagram nodes to the SymbolPalette. Please refer to the below code example.  
 
Code example:  
Group group =new Group();  
int indee;  
//Clone the diagram object to group...  
group.AppendChildren(this.diagram1.Model.Nodes.Clone() as NodeCollection, out indee);  
 
 
 
 
Regards,  
Ramya T 


Blanca Calderon
Replied On June 17, 2019 10:52 AM UTC

Thank you, I think that works properly.

Ramya Thirugnanam [Syncfusion]
Replied On June 18, 2019 05:22 AM UTC

Hi Blanca,  
 
Thanks for your update. 
 
Regards,
Ramya T
 


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

This page will automatically be redirected to the 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

Live Chat Icon For mobile
Live Chat Icon