Skip to content

Commit

Permalink
DataGrid CheckBoxList column filter not refreshed on search when Allo…
Browse files Browse the repository at this point in the history
…wCheckBoxListVirtualization="false"
  • Loading branch information
enchev committed Sep 12, 2024
1 parent 8deed23 commit 3ba3610
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Radzen.Blazor/RadzenDataGridHeaderCell.razor
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,11 @@ else
}

filterValues = query;

if (!Column.AllowCheckBoxListVirtualization)
{
await InvokeAsync(StateHasChanged);
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion RadzenBlazorDemos/Pages/DataGridCheckBoxListFilter.razor
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
FilterMode="FilterMode.CheckBoxList" PageSize="5" AllowPaging="true" AllowSorting="true" Data="@orders">
<Columns>
<RadzenDataGridColumn Property="OrderID" Title="Order ID" />
<RadzenDataGridColumn Property="Customer.CompanyName" Title="Customer" />
<RadzenDataGridColumn Property="Customer.CompanyName" Title="Customer" AllowCheckBoxListVirtualization="false" />
<RadzenDataGridColumn Property="ProductDiscontinued" Title="Discontinued" />
<RadzenDataGridColumn Property="Employee.LastName" Title="Employee">
<Template Context="order">
Expand Down

0 comments on commit 3ba3610

Please sign in to comment.