Skip to content

Commit 047ddcd

Browse files
chore(treeview): add missing using
1 parent 1269e1b commit 047ddcd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/treeview/data-binding/load-on-demand.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)