Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
120
DragDrop, not allow to drop
posted

Hello,

I've got a problem with the DragDrop Framework.

The droptarget is a grid with several columns and rows, the dragsource are several images.

In every gridcell are just one image is allowed to place, if there is already one image in there i have to dissallow do drop.

On the event DragOver i check if there is one image, if 'true' i set:

e.DropTarget.AllowDrop = false;

i also tried:

e.DragSource.AllowDrop = false;

but both lines have no result...i can still drop a second image in there. How can i dissallow to drop the image?

Andreas

Parents
No Data
Reply
  • 130
    Verified Answer
    Offline posted

    Hello Andreas,

    In order to achieve the desired behavior you have to use e.OperationType property:

    e.OperationType = OperationType.DropNotAllowed;

    Hope this is what you need.

    Best regards,

    Bobby Kulov

    Infragistics Developer Support

    https://ko.infragistics.com/support

Children
No Data