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.

Drop event not firing

Thread ID:

Created:

Updated:

Platform:

Replies:

117624 Nov 18,2014 10:53 AM Nov 19,2014 11:20 PM ASP.NET Web Forms 3
loading
Tags: Diagram
Jim Jacobs
Asked On November 18, 2014 10:53 AM

Hi,

I want to intercept the drop event, but it does not seem to be firing.
Looks pretty straight forward, but I'm obviously missing something.

I have the following on my aspx page:

function drop(cancel, element, model, type) {
                alert('In drop');
            }

<ej:Diagram ID="DiagramContent" runat="server" Height="100%" Width="100%" ClientDrop="drop" OnClientDrag="drag">
            </ej:Diagram>


Initially I just had function drop(args), but that didn't work either.
I also tried identifying the drop handler in code behind using: DiagramContent.ClientDrop = "drop";

What am I doing wrong?

Thanks in advance

Jim


Shyam G [Syncfusion]
Replied On November 19, 2014 07:24 AM

Hi Jim

Thanks for using Syncfusion products.

Please note that if you are using a Diagram builder application, We have already triggered  a “drop” event on client side in the “diagrambuilder.js” file. If you trigger a “drop” event in server side in the same Diagram builder application then the “drop” event will not be triggered. So we suggest you to remove the client side “drop” event of “diagram.model.drop = nodeondrop;in  the “diagrambuilder.js” file and use the server side “drop” event. Please see the code snippet below to use the server side “drop” event.

Here is the code snippet

 

DiagramContent.ClientDrop = "drop";

 

function drop() {

   

}

We have attached sample below for your reference.

Please let me know if any concerns.

Regards,

Shyam G


Attachment: DiagramBuilder_sample2065910574_100f4ac7.zip

Jim Jacobs
Replied On November 19, 2014 10:20 AM

Hi Shyam,

I followed your advice and the drop event is working fine now.
Thanks

Jim

Shyam G [Syncfusion]
Replied On November 19, 2014 11:20 PM

Hi Jim

Thanks for your reply.

We are happy to hear that the problem is resolved.

Please let me know if any concerns.

Regards,

Shyam G


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.

;