diff --git a/ComponentPractice/ComponentPractice/Components/Pages/DataGridREST.razor b/ComponentPractice/ComponentPractice/Components/Pages/DataGridREST.razor
index 65fa325..617a8d3 100644
--- a/ComponentPractice/ComponentPractice/Components/Pages/DataGridREST.razor
+++ b/ComponentPractice/ComponentPractice/Components/Pages/DataGridREST.razor
@@ -11,9 +11,9 @@
+ SelectionMode="DataGridSelectionMode.Single"
+ AllowPaging="true" PageSize="@PAGE_SIZE" PagerHorizontalAlign="HorizontalAlign.Center" ShowPagingSummary="true"
+ AllowFiltering="true" AllowColumnResize="true" AllowAlternatingRows="false" FilterMode="FilterMode.CheckBoxList" AllowSorting="true">
@@ -29,6 +29,29 @@
+
+ DataGrid Virtualization
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@code {
readonly int PAGE_SIZE = 10;
@@ -68,4 +91,13 @@
isLoading = false;
}
+
+ // Virtualization
+ IEnumerable vtzdCustomers;
+
+ protected override async Task OnInitializedAsync()
+ {
+ var result = await service.GetCustomer();
+ vtzdCustomers = result.Value;
+ }
}