Disable Parent Node in TreeView - Set to not clickable

In this the parent node can be clickable. I need to disable that. Child nodes must be clickable.




 



1 Reply

PM Prasanth Madhaiyan Syncfusion Team July 4, 2022 03:47 PM UTC

Hi Kavishka,


Greetings from Syncfusion support.


We have validated your reported issue by preparing the ASP.NET Web Forms TreeView sample, but we are not able to achieve your exact requirement in the EJ1 control. Because when we disable the parent node, the dependent child node is also disabled. But we would like to let you know that you can achieve your exact requirements in the EJ2 TreeView component by using the htmlAttributes property. Kindly consider this suggestion to use the EJ2 TreeView component instead of the EJ1 control.


For your reference we have attached the sample with EJ2 TreeView, demo and documentation link.


Sample : https://stackblitz.com/edit/cm9c24?file=dataSource.json


Demo : https://ej2.syncfusion.com/demos/#/bootstrap5/treeview/default.html


Documentation : https://ej2.syncfusion.com/javascript/documentation/treeview/es5-getting-started/


You can integrate the EJ2 component into the ASP.NET Web Forms by referring the below link.


Documentation : https://ej2.syncfusion.com/javascript/documentation/getting-started/webforms/


Please get back to us if the provided suggestion is not suitable.


Regards,

Prasanth Madhaiyan.


Loader.
Up arrow icon