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
close icon

Template for Hierarchial treeview with 2 levels of sub-children with different icons based the type of child

Hi,

Could you please let me know how I could display different icons for different children of the treeview based on some field?



1 Reply

SI Silambarasan I Syncfusion Team February 21, 2019 11:10 AM UTC

Hi John, 
 
Thank you for contacting Syncfusion support. 
 
We have looked into the reported query and your requirement “To display different icons for different children based on some field” can be achievable in EJ2 TreeView. We have prepared a sample for setting different icons for different children based on some field by using nodeTemplate property.  
 
Please find the sample from the following link. 
 
Help Doc link: 
 
Could you please check the above sample and get back to us if your requirement is not fulfilled or need further assistance? 
 
Regards, 
Silambarasan 


Loader.
Live Chat Icon For mobile
Up arrow icon