Clickevent ejTreeview Angular 2+ JS1

Hi,

Can anyone explain/show how I can implement a clickevent in angular treeview? An example would be appreciated. 

Thanks in advance!:)


3 Replies

AB Ashokkumar Balasubramanian Syncfusion Team February 23, 2018 10:30 AM UTC

Hi Laurens Albers, 
 
We have explained the event binding in below documentations. Please check it. 
 
 
Bind the nodeClick event for TreeView component. 
 
[HTML] 
 
<ej-treeview id='treeview' [fields]='fields' (nodeClick)="onNodeClick($event)" ></ej-treeview> 
 
[TS] 
 
onNodeClick(args){ 
        alert("Node Click Event Triggred"); 
    } 
 
For your reference, we have prepared simple sample for this requirement, please check the sample in below location. 
 
 
To know more details about nodeClick event, please check the below API documentation. 
 
 
Please let us know, if the provided information’s are helpful to achieve your requirement or not. 
 
Regards, 
Ashokkumar B. 



LA Laurens Albers February 23, 2018 03:49 PM UTC

Thank you for your reponse! :)


AB Ashokkumar Balasubramanian Syncfusion Team February 26, 2018 05:29 AM UTC

Hi Laurens Albers, 
 
Most Welcome. 
 
Please let us know, if you need any further assistance. 
 
Regards, 
Ashokkumar B. 


Loader.
Up arrow icon