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

Select node

Thread ID:





120702 Oct 6,2015 08:00 AM UTC Oct 7,2015 09:09 AM UTC JavaScript 1
Tags: ejDiagram
Asked On October 6, 2015 08:00 AM UTC

Can i select a node from diagram in js function.

Shyam G [Syncfusion]
Replied On October 7, 2015 09:09 AM UTC

Hi Hamid,

Please use diagram’s clientside API method addSelection, which is used to add the selection for an element at runtime.  Please refer to the below code example.

Code example:

<div id="diagramcontent"></div>


        var diagram = $("#diagramcontent").ejDiagram("instance");

        var node = diagram.model.nodes[0];


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