diff --git a/DbFirst.BlazorWasm/Components/CatalogsGrid.razor b/DbFirst.BlazorWasm/Components/CatalogsGrid.razor index 25b9a0a..42973ee 100644 --- a/DbFirst.BlazorWasm/Components/CatalogsGrid.razor +++ b/DbFirst.BlazorWasm/Components/CatalogsGrid.razor @@ -83,13 +83,55 @@ else DataItemDeleting="OnDataItemDeleting"> - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @{ SetEditContext(editFormContext.EditContext); var editModel = (CatalogEditModel)editFormContext.EditModel; } diff --git a/DbFirst.BlazorWasm/Components/MassDataGrid.razor b/DbFirst.BlazorWasm/Components/MassDataGrid.razor index b4f5524..a0fba53 100644 --- a/DbFirst.BlazorWasm/Components/MassDataGrid.razor +++ b/DbFirst.BlazorWasm/Components/MassDataGrid.razor @@ -116,23 +116,28 @@ else - + - + - + @@ -169,6 +174,13 @@ else private int pageIndex; private int pageCount = 1; + private readonly List statusFilterOptions = new() + { + new() { Value = null, Text = "Alle" }, + new() { Value = true, Text = "True" }, + new() { Value = false, Text = "False" } + }; + protected override async Task OnInitializedAsync() { await LoadPage(0); @@ -237,4 +249,10 @@ else e.Cancel = true; return Task.CompletedTask; } + + private sealed class BoolFilterOption + { + public bool? Value { get; set; } + public string Text { get; set; } = string.Empty; + } } diff --git a/DbFirst.BlazorWebApp/Components/CatalogsGrid.razor b/DbFirst.BlazorWebApp/Components/CatalogsGrid.razor index e59fd81..322c3b5 100644 --- a/DbFirst.BlazorWebApp/Components/CatalogsGrid.razor +++ b/DbFirst.BlazorWebApp/Components/CatalogsGrid.razor @@ -42,13 +42,55 @@ else DataItemDeleting="OnDataItemDeleting"> - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @{ SetEditContext(editFormContext.EditContext); var editModel = (CatalogEditModel)editFormContext.EditModel; } diff --git a/DbFirst.BlazorWebApp/Components/MassDataGrid.razor b/DbFirst.BlazorWebApp/Components/MassDataGrid.razor index b4f5524..a0fba53 100644 --- a/DbFirst.BlazorWebApp/Components/MassDataGrid.razor +++ b/DbFirst.BlazorWebApp/Components/MassDataGrid.razor @@ -116,23 +116,28 @@ else - + - + - + @@ -169,6 +174,13 @@ else private int pageIndex; private int pageCount = 1; + private readonly List statusFilterOptions = new() + { + new() { Value = null, Text = "Alle" }, + new() { Value = true, Text = "True" }, + new() { Value = false, Text = "False" } + }; + protected override async Task OnInitializedAsync() { await LoadPage(0); @@ -237,4 +249,10 @@ else e.Cancel = true; return Task.CompletedTask; } + + private sealed class BoolFilterOption + { + public bool? Value { get; set; } + public string Text { get; set; } = string.Empty; + } }