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
Telerik
Build modern .NET business apps
.Net Web
Cross-Platform
Desktop
Reporting and Documents
AI for Developers & IT
Ensure AI program success
AI Coding
AI Engineering
Additional Tools
Enhance the developer and designer experience
Testing & Mocking
Debugging
UI/UX Tools
CMS
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