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.

ASP Diagram Drag n Drop nodes

Thread ID:





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

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 01:44 AM

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 03:50 AM

Thank, this works

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

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.

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.