From 61a21192c58c1fe345c8db5b04be710777de00a6 Mon Sep 17 00:00:00 2001 From: Mladen Macanovic Date: Wed, 20 Nov 2024 13:21:09 +0100 Subject: [PATCH] Fix examples --- Documentation/Blazorise.Docs/Models/Snippets.generated.cs | 2 +- .../DataGridFilterModeColumnTemplateFilteringExampleCode.html | 2 +- .../DataGridFilterModeColumnTemplateFilteringExample.razor | 2 +- Source/Extensions/Blazorise.DataGrid/_DataGridMenuFilter.razor | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/Blazorise.Docs/Models/Snippets.generated.cs b/Documentation/Blazorise.Docs/Models/Snippets.generated.cs index f0a0b2bda3..9ea1c2a8e7 100644 --- a/Documentation/Blazorise.Docs/Models/Snippets.generated.cs +++ b/Documentation/Blazorise.Docs/Models/Snippets.generated.cs @@ -8079,7 +8079,7 @@ protected override async Task OnInitializedAsync() - { context.FilterMethodChanged.InvokeAsync(e); }""> @{ var isNumericOrDate = context.Column.ColumnType == DataGridColumnType.Numeric || context.Column.ColumnType == DataGridColumnType.Date; } diff --git a/Documentation/Blazorise.Docs/Pages/Docs/Extensions/DataGrid/Code/DataGridFilterModeColumnTemplateFilteringExampleCode.html b/Documentation/Blazorise.Docs/Pages/Docs/Extensions/DataGrid/Code/DataGridFilterModeColumnTemplateFilteringExampleCode.html index 8af1d92779..e64aee01d5 100644 --- a/Documentation/Blazorise.Docs/Pages/Docs/Extensions/DataGrid/Code/DataGridFilterModeColumnTemplateFilteringExampleCode.html +++ b/Documentation/Blazorise.Docs/Pages/Docs/Extensions/DataGrid/Code/DataGridFilterModeColumnTemplateFilteringExampleCode.html @@ -15,7 +15,7 @@ <FilterMenuTemplate> <Row> <Column ColumnSize="ColumnSize.Is4"> - <Select TValue="DataGridColumnFilterMethod" SelectedValue="@context.GetFilterMethod()" SelectedValueChanged="e => { context.FilterMethodChanged.InvokeAsync(e); }"> + <Select TValue="DataGridColumnFilterMethod" Value="@context.GetFilterMethod()" ValueChanged="e => { context.FilterMethodChanged.InvokeAsync(e); }"> @{ var isNumericOrDate = context.Column.ColumnType == DataGridColumnType.Numeric || context.Column.ColumnType == DataGridColumnType.Date; } diff --git a/Documentation/Blazorise.Docs/Pages/Docs/Extensions/DataGrid/Examples/DataGridFilterModeColumnTemplateFilteringExample.razor b/Documentation/Blazorise.Docs/Pages/Docs/Extensions/DataGrid/Examples/DataGridFilterModeColumnTemplateFilteringExample.razor index df72706898..0c8e958eca 100644 --- a/Documentation/Blazorise.Docs/Pages/Docs/Extensions/DataGrid/Examples/DataGridFilterModeColumnTemplateFilteringExample.razor +++ b/Documentation/Blazorise.Docs/Pages/Docs/Extensions/DataGrid/Examples/DataGridFilterModeColumnTemplateFilteringExample.razor @@ -15,7 +15,7 @@ - @{ var isNumericOrDate = context.Column.ColumnType == DataGridColumnType.Numeric || context.Column.ColumnType == DataGridColumnType.Date; } diff --git a/Source/Extensions/Blazorise.DataGrid/_DataGridMenuFilter.razor b/Source/Extensions/Blazorise.DataGrid/_DataGridMenuFilter.razor index d21dd9283e..21177de8ce 100644 --- a/Source/Extensions/Blazorise.DataGrid/_DataGridMenuFilter.razor +++ b/Source/Extensions/Blazorise.DataGrid/_DataGridMenuFilter.razor @@ -12,7 +12,7 @@ var filterMethod = Column.GetFilterMethod() ?? Column.GetDataGridFilterMethodAsColumn(); - @if ( Column.ColumnType == DataGridColumnType.Numeric || Column.ColumnType == DataGridColumnType.Date ) { @Localizer.Localize( ParentDataGrid.Localizers?.FilterMethodEqualsLocalizer, "Equals" )