I'm looking at the Node Template - TreeView - Kendo UI for Angular (telerik.com) . Trying to figure out how to open a new component / page when clicking on the tree node. Can someone provide an example?
Thanks,
Bryian Tan
I'm looking at the Node Template - TreeView - Kendo UI for Angular (telerik.com) . Trying to figure out how to open a new component / page when clicking on the tree node. Can someone provide an example?
Thanks,
Bryian Tan
Hi Bryian,
You can handle the click event using the template or the nodeClick event and use the Angular router to navigate to a different component. Another approach can also be taken by using ngIf to conditionally render a component on the page depending on the nodeClick event result.
I don't have a specific example of using a Router, but it should be a pretty straightforward implementation. A do have an example with ngIf - https://stackblitz.com/edit/angular-kzmx2a?file=src%2Fapp%2Fapp.component.ts
I hope this helps.
Regards,
Yanmario
Progress Telerik