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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Drop event not firing

Thread ID:





117624 Nov 18,2014 03:53 PM UTC Nov 20,2014 04:20 AM UTC ASP.NET Web Forms 3
Tags: Diagram
Jim Jacobs
Asked On November 18, 2014 03:53 PM UTC


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">

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


Shyam G [Syncfusion]
Replied On November 19, 2014 12:24 PM UTC

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.


Shyam G

Attachment: DiagramBuilder_sample2065910574_100f4ac7.zip

Jim Jacobs
Replied On November 19, 2014 03:20 PM UTC

Hi Shyam,

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


Shyam G [Syncfusion]
Replied On November 20, 2014 04:20 AM UTC

Hi Jim

Thanks for your reply.

We are happy to hear that the problem is resolved.

Please let me know if any concerns.


Shyam G


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon 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.Close Icon