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.

Get Selected Node from Javascript

Thread ID:

Created:

Updated:

Platform:

Replies:

117284 Sep 24,2014 01:12 AM Sep 29,2014 07:05 AM ASP.NET Web Forms 3
loading
Tags: Diagram
Chong Yee Mei
Asked On September 24, 2014 01:12 AM

Hi,

Would like to know what is the way to obtain the selected node from the object Diagram via javascript?

We have obtained the object for diagram via

var diagramObj = $("#DiagramName").data("ejDiagram");



Shyam G [Syncfusion]
Replied On September 25, 2014 12:46 AM

Hi Chong

Thanks for using Syncfusion products.

We have created a simple sample to meet your requirement and attached below. Please see the below code snippet.

Code snippet:

 

            var diagram = $("#Diagram1").data("ejDiagram");

            // to get selected node

            var node = diagram.selectionList[0];

Please let me know if any concerns.

Regards,

Shyam G


Attachment: TestDiagramViewer_(2)_31d48f09.zip

Chong Yee Mei
Replied On September 28, 2014 09:15 PM

Hi Shyam,

Got it, thanks!

Shyam G [Syncfusion]
Replied On September 29, 2014 07:05 AM

Hi Chong

We are happy to hear that your problem gets 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.

;