diff --git a/examples/Demo/Shared/Pages/Lab/IssueTester.razor b/examples/Demo/Shared/Pages/Lab/IssueTester.razor index 5f282702b..218995abf 100644 --- a/examples/Demo/Shared/Pages/Lab/IssueTester.razor +++ b/examples/Demo/Shared/Pages/Lab/IssueTester.razor @@ -1 +1,2 @@ - \ No newline at end of file +@using FluentUI.Demo.Shared.Pages.DataGrid.Examples + diff --git a/examples/Demo/Shared/Pages/Lab/IssueTester3102.razor b/examples/Demo/Shared/Pages/Lab/IssueTester3102.razor deleted file mode 100644 index faccceb63..000000000 --- a/examples/Demo/Shared/Pages/Lab/IssueTester3102.razor +++ /dev/null @@ -1,82 +0,0 @@ -@using Microsoft.FluentUI.AspNetCore.Components - -

FluentDataGrid

-
- - - - - - - - - - - - - - - - - - - - - -
- -@code { - FluentDataGrid? grid1; - FluentSwitch? _clearToggle; - - bool _clearItems = false; - public record SampleGridData(string Item1, string Item2, string Item3, string Item4, - string Item5, string Item6, string Item7, string Item8, - string Item9, string Item10, string Item11, string Item12, - string Item13, string Item14, string Item15, string Item16); - - IQueryable? items = Enumerable.Empty().AsQueryable(); - - private IQueryable GenerateSampleGridData(int size) - { - SampleGridData[] data = new SampleGridData[size]; - - for (int i = 0; i < size; i++) - { - data[i] = new SampleGridData($"value {i}-1", $"value {i}-2", $"value {i}-3", $"value {i}-4", - $"value {i}-5", $"value {i}-6", $"value {i}-7", $"value {i}-8", - $"value {i}-9", $"value {i}-10", $"value {i}-11", $"value {i}-12", - $"value {i}-13", $"value {i}-14", $"value {i}-15", $"value {i}-16"); - } - return data.AsQueryable(); - } - protected override void OnInitialized() - { - items = GenerateSampleGridData(5000); - } - - private void ToggleItems() - { - if (_clearItems) - { - items = Enumerable.Empty().AsQueryable(); - } - else - { - items = GenerateSampleGridData(5000); - } - } - - private async Task SimulateDataLoading() - { - _clearItems = false; - - items = Enumerable.Empty().AsQueryable(); - //grid?.SetLoadingState(true); - - await Task.Delay(1500); - - items = GenerateSampleGridData(5000); - //grid?.SetLoadingState(false); - } -} diff --git a/examples/Demo/Shared/Pages/Lab/IssueTesterPage.razor b/examples/Demo/Shared/Pages/Lab/IssueTesterPage.razor index 404095fe5..2d179ddb9 100644 --- a/examples/Demo/Shared/Pages/Lab/IssueTesterPage.razor +++ b/examples/Demo/Shared/Pages/Lab/IssueTesterPage.razor @@ -6,5 +6,3 @@ - -