You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Telerik TreeList for Blazor, I load the TreeList in a collapsed mode. I need to programmatically expand and collapse a specific node programmatically.
25
+
In the Telerik TreeList for Blazor, I load the TreeList in a collapsed mode. I need to programmatically expand and collapse TreeList nodes.
26
26
27
27
This KB article also answers the following questions:
28
28
- How can I control the expanded state of TreeList nodes in code?
29
-
- Is it possible to expand a TreeList node without user interaction?
29
+
- Is it possible to expand a TreeList nodes without user interaction?
30
30
- What approach should I take to programmatically adjust the visibility of TreeList nodes?
31
31
32
32
## Solution
@@ -36,45 +36,34 @@ To control the expanded or collapsed state of items in the TreeList programmatic
36
36
Below is an example demonstrating how to use the TreeList State to expand or collapse items programmatically:
37
37
38
38
````CSHTML
39
-
@using Telerik.DataSource;
40
-
41
39
<div>
42
40
<span>
43
41
<TelerikButton OnClick="@SetTreeListExpandedItems">Expand/Collapse All Items</TelerikButton>
0 commit comments