ASP Diagram Drag n Drop nodes

Hello.
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

3 Replies

SG Shyam G Syncfusion Team 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) { 
 
        } 
 
Regards, 
Shyam G 



AK Andrey Kucher October 5, 2017 07:50 AM UTC

Thank, this works



SG Shyam G Syncfusion Team October 6, 2017 04:08 AM UTC

Hi Andrey, 
Please let us know if you need further assistance on this. 
Regards, 
Shyam G 


Loader.
Up arrow icon