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:

Created:

Updated:

Platform:

Replies:

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

Hello.
Can i select a node from diagram in js function.
thank

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>

    <script>

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

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

        diagram.addSelection(node);
    </script>

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.

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

;