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

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?


2 Replies

RT Ramya Thirugnanam Syncfusion Team July 5, 2012 03:33 AM UTC

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



RT Ramya Thirugnanam Syncfusion Team July 6, 2012 01:03 PM UTC

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

Loader.
Up arrow icon