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.

Extending the Drag and Drop Objects

Thread ID:

Created:

Updated:

Platform:

Replies:

72843 Apr 8,2008 10:47 AM Apr 20,2008 01:24 PM ASP.NET Web Forms (Classic) 1
loading
Tags: DiagramWebControl
Aravindan
Asked On April 8, 2008 10:47 AM

Hi,

I would like to know if it is possible to create draggable objects with action specific data in them, like a combo box or a text field to let the user choose from a predefined list of actions for the box in a flowchart?

And I would also have to save the sequence of the flowchart a user creates to a database. I did not find any examples related to that in the samples, so can someone help me in implementing this functionality?

Thanks


Administrator [Syncfusion]
Replied On April 20, 2008 01:24 PM

Hi Aravindan,

Thank you for using Syncfusion prducts.

If you want to display the Textfield in a diagram object, then you can use its label collection to add label. The following code snippet illustrates this.

[C#]

Syncfusion.Windows.Forms.Diagram.Rectangle rec=new Syncfusion.Windows.Forms.Diagram.Rectangle(40,40,40,40);
Syncfusion.Windows.Forms.Diagram.Label l= new Syncfusion.Windows.Forms.Diagram.Label();
l.Text="Rectangle";
//Add label to the rectangle
rec.Labels.Add(l);
this.diagram1.Model.AppendChild(rec);

If you want to save the entire diagram into a database , then you can achieve this by saving the diagram (edd format) using the diagram.SaveSoap/SaveBinary and diagram.LoadSoap/LoadBinary methods and finally save that edd file in bytes into the database.

Please provide me more information if I misunderstood your requirement.

Regards,
Jaya



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.

;