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.

click event on node

Thread ID:





130707 May 27,2017 04:59 AM May 29,2017 09:18 PM Angular 1
Tags: ejDiagram
Asked On May 27, 2017 04:59 AM


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 29, 2017 09:18 PM

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-diagram id="diagramCore" (itemClick)="onClick($event)"> 
onClick(event) { 
        if (event.elementType === "node") { 
            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. 
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.

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.