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.

Select node

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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

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

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.

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.

;