How to adjust the node height in ASP.NET Core TreeView component?
To adjust the height of the nodes in the ASP.NET Core TreeView component, override the height value for the e-fullrow , e-text-content and e-list-text classes.
[Index.cshtml]
<ejs-treeview id="treedata" > <e-treeview-fields dataSource="ViewBag.dataSource" id="id" parentId="pid" text="name" hasChildren="hasChild" expanded="expanded" selected="is_selected"></e-treeview-fields> </ejs-treeview> <style> #treedata.e-treeview .e-fullrow { height: 22px !important; }
#treedata.e-treeview .e-text-content { height: 22px !important; }
#treedata.e-treeview .e-list-text { line-height: 10px !important; min-height: 10px !important; } </style> |
I hope you enjoyed learning about how to adjust the node height in ASP.NET Core TreeView Component
You can refer to our ASP.NET Core TreeView's feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our ASP.NET Core TreeView example to understand how to create and manipulate data.
For current customers, you can check out our ASP.NET Core Components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!