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.

How can i drag and drop business objects from palette to canvas?

Thread ID:

Created:

Updated:

Platform:

Replies:

104212 Jun 29,2012 06:24 AM Jul 6,2012 09:03 AM WPF 2
loading
Tags: Diagram
Ghanta SreeLakshmi
Asked On June 29, 2012 06:24 AM

Hi
How to drag and drop business object from palette to canvas:

Currently we have shapes symbols(cirle,rectangle) and some business pbjects on the palette.

When drag and drop the items from palette,the item is added to canvas.
But i need to restrict the adding of business object to canvas.
how can i achieve this at the time of Drag&Drop  on canvas?

How can we do this drag and drop operations using MVVM?


Ramya Thirugnanam [Syncfusion]
Replied On July 4, 2012 11:33 PM

Hi Ghanta,

With regards to drag and drop business objects from palette to canvas, we are working on your requirement. We will update you the status on July 6th 2012.

Please let us know if you have any concerns,
Regards,
Ramya


Ramya Thirugnanam [Syncfusion]
Replied On July 6, 2012 09:03 AM

Hi Ghanta,

We have analyzed your query, your requirement (“restrict the adding of business object to canvas”) can be achieved by using the following two ways.

1. Set the AllowDrag as false.

 

Please set the AllowDrag property of the SymbolPaletteItem as false for disabling the Drag and Drop operation of SymbolPaletteItem from SymbolPalette.

 

2. Remove the Dropped Node which has content as BusinessObject.

We have created a simple sample to represent this. Please refer to the sample from the attachment. The Dropped Node can be identified using the NodeDrop event of DiagramView. We have used this event to achieve your requirement.

Please let us know if you have any concerns,

Regards,
Ramya



businessobjectinSymbolPalette_602e2171.zip

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.

;