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.
Syncfusion Feedback

click event on node

Thread ID:

Created:

Updated:

Platform:

Replies:

130707 May 27,2017 08:59 AM UTC May 30,2017 01:18 AM UTC Angular 1
loading
Tags: ejDiagram
yasmine
Asked On May 27, 2017 08:59 AM UTC

HI

I need a demo on how to to get a pop up form  by clicking on a node in organizational diagram  to add informations about each employee

Thank you

Shyam G [Syncfusion]
Replied On May 30, 2017 01:18 AM UTC

Hi Yasmine, 
 
Please use itemClick event to achieve your requirement. Please refer to the code example and sample below. 
 
Code example: 
 
<ej-dialog id="basicDialog" title="Dialog" [showOnInit]="showOnInit"> 
        <span id="text"></span> 
    </ej-dialog> 
 
<ej-diagram id="diagramCore" (itemClick)="onClick($event)"> 
                </ej-diagram> 
 
onClick(event) { 
        if (event.elementType === "node") { 
            $("#basicDialog").ejDialog("open"); 
            document.getElementById("text").innerHTML = event.element.name; 
        } 
    } 
 
 
In the above sample, we have shown the node name in the dialog box using diagram itemClick event. 
 
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

;