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

Get Selected Node from Javascript

Thread ID:





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


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 04:46 AM UTC

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.


Shyam G

Attachment: TestDiagramViewer_(2)_31d48f09.zip

Chong Yee Mei
Replied On September 29, 2014 01:15 AM UTC

Hi Shyam,

Got it, thanks!

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

Hi Chong

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