Product Bundles
DevCraft
All Telerik .NET and Kendo UI JavaScript components and AI Tools in one package.
Kendo UI
Bundle of AI Tools plus four JavaScript UI libraries built natively for jQuery, Angular, React and Vue.
Build JavaScript UI
Javascript
Agent and App Development Solutions
Build. Accelerate. Govern.
AI-Ready Application Experiences
AI-Assisted SDLC
Agent Governance and Control
Telerik
Build modern .NET business apps
.Net Web
Desktop
Reporting and Documents
Cross-Platform
Additional Tools
Enhance the developer and designer experience
Testing & Mocking
CMS
Debugging
UI Tools
Free Tools
Support and Learning
Productivity and Design Tools
Hi All,
I have a requirement to show collapse icon (after clicking the expand icon) whether it has a child nodes or not.
Thanks
Hi Harpreet,
A possible approach to achieve the desired result is to use a template as demonstrated in the TreeView Templates Demo.
This way, if an item does not have child nodes you can show the collapse Icon:
@(Html.Kendo().TreeView() .Name("treeview") .TemplateId("treeview-template") ... )
<script id="treeview-template" type="text/kendo-ui-template"> # if (!item.items) { # <span class="k-icon k-i-collapse"></span> # } # #: item.text # </script>
For items that have child nodes, the default behavior of the widget will be used and an expand icon will be rendered. Let me know if this suggestion works for you.
Regards, Aleksandar Progress Telerik