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

ASP Diagram Drag n Drop nodes

Thread ID:





133019 Oct 4,2017 10:14 AM UTC Oct 6,2017 04:08 AM UTC ASP.NET Web Forms 3
Tags: Diagram
Andrey Kucher
Asked On October 4, 2017 10:14 AM UTC

I'm using your ASP diagram to build elimination chart and I need to handle drag'n'drop nodes to rearrange participants.
Looks like I have fouund how could I implement drag'n'drop at client side, but I can't use Diagram.OnClientDrag property to set client function by some cause.
If I'm using this at browser console, then it succesfully works:
$("#EliminationChart").ejDiagram({ drag : function (args) {console.log(args);} });
But from server follow string has no effect:
eliminationChart.OnClientDrag = @"function (args) { console.log(args); }";
I can't found examples for using such properties and also can't found any 'enable client events' properties at diagram. So, how could I use this property to set my scripts?
You could found my page and problem video in attachment.

Attachment: DiagramClientEventsProblem_28337e01.7z

Shyam G [Syncfusion]
Replied On October 5, 2017 05:44 AM UTC

Hi Andrey, 
Please refer to the below code example in which we have shown how to define client side drag event in the server side(c#). We will consider it in UG documentation and let you know once it is refreshed online. 
Code example: 
//define drag event 
        eliminationChart.OnClientDrag = "drag"; 
        function drag(args) { 
Shyam G 

Andrey Kucher
Replied On October 5, 2017 07:50 AM UTC

Thank, this works

Shyam G [Syncfusion]
Replied On October 6, 2017 04:08 AM UTC

Hi Andrey, 
Please let us know if you need further assistance on this. 
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

This page will automatically be redirected to the 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