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
Docs & Resources
Productivity and Design Tools
Hello!
I am using Telerik.UI.for.Blazor version 5.0.0.,
I have a page with a treelist. I want all items to be collapsed when the page is loaded and the treelist is displayed for the first time.
How do I do this?
Hello, Petteri,
You can configure the expanded state of the items through the TreeList State.
The TreeList exposes two state events:
To collapse all items on initialization, handle the OnStateInit event and pass an empty collection to the ExpandedItems field of the state object. See an example here: https://docs.telerik.com/blazor-ui/components/treelist/state#set-treelist-options-through-state.
Let me know if additional information is needed.
Best regards, Georgi Progress Telerik