diff --git a/Radzen.Blazor/DropDownBase.cs b/Radzen.Blazor/DropDownBase.cs index 48a9447181d..f4dc6898a04 100644 --- a/Radzen.Blazor/DropDownBase.cs +++ b/Radzen.Blazor/DropDownBase.cs @@ -53,7 +53,7 @@ public Microsoft.AspNetCore.Components.Web.Virtualization.Virtualize Vir if (LoadData.HasDelegate) { - await LoadData.InvokeAsync(new Radzen.LoadDataArgs() { Skip = request.StartIndex, Top = request.Count, Filter = await JSRuntime.InvokeAsync("Radzen.getInputValue", search) }); + await LoadData.InvokeAsync(new Radzen.LoadDataArgs() { Skip = request.StartIndex, Top = request.Count, Filter = searchText }); } virtualItems = (LoadData.HasDelegate ? Data : view.Skip(request.StartIndex).Take(top)).Cast().ToList(); @@ -702,7 +702,6 @@ async Task DebounceFilter() { if (!LoadData.HasDelegate) { - searchText = await JSRuntime.InvokeAsync("Radzen.getInputValue", search); _view = null; if (IsVirtualizationAllowed()) { @@ -781,14 +780,14 @@ internal virtual async System.Threading.Tasks.Task GetLoadDataArgs #if NET5_0_OR_GREATER if (AllowVirtualization) { - return new Radzen.LoadDataArgs() { Skip = 0, Top = PageSize, Filter = await JSRuntime.InvokeAsync("Radzen.getInputValue", search) }; + return new Radzen.LoadDataArgs() { Skip = 0, Top = PageSize, Filter = searchText }; } else { - return new Radzen.LoadDataArgs() { Filter = await JSRuntime.InvokeAsync("Radzen.getInputValue", search) }; + return new Radzen.LoadDataArgs() { Filter = searchText }; } #else - return new Radzen.LoadDataArgs() { Filter = await JSRuntime.InvokeAsync("Radzen.getInputValue", search) }; + return new Radzen.LoadDataArgs() { Filter = searchText }; #endif } diff --git a/Radzen.Blazor/RadzenDropDown.razor b/Radzen.Blazor/RadzenDropDown.razor index fe3ce5714c3..9a8b6e45bc7 100644 --- a/Radzen.Blazor/RadzenDropDown.razor +++ b/Radzen.Blazor/RadzenDropDown.razor @@ -104,7 +104,8 @@ {
+ @onchange="@((ChangeEventArgs args) => OnFilter(args))" @onkeydown="@((args) => OnFilterKeyPress(args))" value="@searchText" + @oninput=@(args => searchText = $"{args.Value}")/>
} @@ -131,7 +132,7 @@
searchText = $"{args.Value}") @onchange="@((args) => OnFilter(args))" @onkeydown="@((args) => OnFilterKeyPress(args))" value="@searchText" />
diff --git a/Radzen.Blazor/RadzenDropDownDataGrid.razor b/Radzen.Blazor/RadzenDropDownDataGrid.razor index 58d8eeded09..d1d116c314c 100644 --- a/Radzen.Blazor/RadzenDropDownDataGrid.razor +++ b/Radzen.Blazor/RadzenDropDownDataGrid.razor @@ -115,7 +115,8 @@ {