From 687d71ef5fb838893fb3f4475d4f0df717aa2683 Mon Sep 17 00:00:00 2001 From: rgentry09 Date: Thu, 28 May 2020 00:38:13 +0200 Subject: [PATCH] CRUD validation messages at field level (https://github.com/gustavnavar/Grid.Blazor/issues/94) --- GridBlazor/GridBlazor.csproj | 2 +- GridBlazor/Pages/GridCreateComponent.razor | 27 ++++---- GridBlazor/Pages/GridCreateComponent.razor.cs | 3 + GridBlazor/Pages/GridUpdateComponent.razor | 27 ++++---- GridBlazor/Pages/GridUpdateComponent.razor.cs | 3 + GridBlazor/wwwroot/css/gridblazor.css | 2 + GridBlazor/wwwroot/css/gridblazor.min.css | 2 +- .../GridBlazorClientSide.Client.csproj | 3 +- GridBlazorClientSide.Client/OrderValidator.cs | 14 +++++ GridBlazorClientSide.Client/Pages/Crud.razor | 62 ++++++++++++++++++- .../GridBlazorOData.Client.csproj | 3 +- GridBlazorOData.Client/OrderValidator.cs | 14 +++++ GridBlazorOData.Client/Pages/Crud.razor | 62 ++++++++++++++++++- .../GridBlazorServerSide.csproj | 2 +- GridBlazorServerSide/Models/OrderValidator.cs | 1 + GridBlazorServerSide/Pages/Crud.razor | 12 +++- GridMvc/Resources/css/gridmvc.css | 2 + GridMvc/Resources/css/gridmvc.min.css | 2 +- docs/blazor_client/Events.md | 20 ++++-- docs/blazor_odata/Events.md | 18 +++++- docs/blazor_server/Events.md | 13 +++- docs/dotnetcore_blazor/Events.md | 13 +++- 22 files changed, 262 insertions(+), 45 deletions(-) create mode 100644 GridBlazorClientSide.Client/OrderValidator.cs create mode 100644 GridBlazorOData.Client/OrderValidator.cs diff --git a/GridBlazor/GridBlazor.csproj b/GridBlazor/GridBlazor.csproj index 7ba8ad0a..22713404 100644 --- a/GridBlazor/GridBlazor.csproj +++ b/GridBlazor/GridBlazor.csproj @@ -6,7 +6,7 @@ 8.0 True False - 1.6.5 + 1.6.6 GridBlazor Grid components for Blazor Grid components for Blazor diff --git a/GridBlazor/Pages/GridCreateComponent.razor b/GridBlazor/Pages/GridCreateComponent.razor index 94716015..cebee5fe 100644 --- a/GridBlazor/Pages/GridCreateComponent.razor +++ b/GridBlazor/Pages/GridCreateComponent.razor @@ -58,7 +58,7 @@ } else if (type == typeof(string) && ((IGridColumn)column).InputType == InputType.TextArea) { -