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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to navigate with treeview

Thread ID:





142819 Feb 20,2019 09:08 PM UTC Feb 21,2019 05:56 PM UTC React - EJ 2 1
Tags: Treeview
Ryan Ngoh
Asked On February 20, 2019 09:41 PM UTC

I am using nodeTemplate on treeview to load my custom component but I can't attach a click handler or link to the treeview rows. I am using treeview as a way to make a 'list drag and drop-able' so I can reorder the items or move them into other trees. My component is using withRouter from react-router to handle routing. How would I make individual treeview elements route to different urls on click?

Silambarasan I [Syncfusion]
Replied On February 21, 2019 05:56 PM UTC

Hi Ryan, 
Thank you for contacting Syncfusion support. 
We have looked into your reported query and we have prepared a sample that demonstrate the requirement “To make individual treeview elements route to different urls on click using nodeTemplate” in EJ2 TreeView. In our TreeView component, we have disabled the pointer events for tree node full row element. Your reported problem can be resolved by manually setting the pointer events to the text content.  
Please refer the sample from the below link. 
.e-treeview .e-list-text{ 
pointer-events: auto; 
Could you please check the above sample and get back to us if your requirement is not fulfilled or need further assistance? 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon