Welcome to the Angular feedback portal. We’re happy you’re here! If you have feedback on how to improve the Angular, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

Hello,

I am not sure this is a bug but I am not able to fire an event from the treeview nodeTemplate. Actually I would like to disable the built-in click event and replace it by the click event of the button inside the template (mainly because I do not want the full <li> to be clickable but only the button)

<div [hidden]="display == false " class="row justify-content-center align-items-center">
<ejs-treeview #treeview="" id="default" [fields]='listfields' [cssClass]='cssClass'>
<ng-template #nodeTemplate="" let-data="">
<div>
<button class="ename btn btn-accent" *ngIf="display == true" (click)="go()">{{data.name}}</button>
</div>
</ng-template>
</ejs-treeview>
<div>
<button class="btn btn-6 create-subject" *ngIf="display == true" (click)="go()">Créer</button>
</div>
</div>


The go() method is fired outside ejs-treeview nodeTemplate, but not inside. And no error reported in the console.

Would you have any hints ?

Thanks,

Gilles