File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
components/treeview/data-binding Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ The **example** below shows how you can handle load on demand in detail. It uses
2222
2323```` CSHTML
2424@using Telerik.Blazor.Components.TreeView
25+ @using Telerik.DataSource.Extensions
2526
2627<TelerikTreeView Data="@HierarchicalData" OnExpand="@LoadChildren">
2728 <TelerikTreeViewBindings>
@@ -112,6 +113,7 @@ The **example** below shows how you can handle load on demand in detail. It uses
112113 // one way to add child elements to a collection
113114 currCategory.Products = new List<ProductItem>();
114115 currCategory.Products.AddRange<ProductItem>(theProducts);
116+ // the AddRange() method comes from the Telerik.DataSource.Extensions
115117
116118 StateHasChanged(); // inform the UI that the data is changed
117119 }
You can’t perform that action at this time.
0 commit comments