Skip to content

Commit

Permalink
DataGrid column AllowCheckBoxListVirtualization property added
Browse files Browse the repository at this point in the history
  • Loading branch information
enchev committed Sep 10, 2024
1 parent a36a740 commit b1b6499
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Radzen.Blazor/RadzenDataGridColumn.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ public partial class RadzenDataGridColumn<TItem> : ComponentBase, IDisposable
[CascadingParameter]
public RadzenDataGridColumn<TItem> Parent { get; set; }

/// <summary>
/// Specifies wether CheckBoxList filter list virtualization is enabled. Set to <c>true</c> by default.
/// </summary>
[Parameter]
public bool AllowCheckBoxListVirtualization { get; set; } = true;

/// <summary>
/// Gets or sets the column filter mode.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion Radzen.Blazor/RadzenDataGridHeaderCell.razor
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
}
else
{
<RadzenListBox AllowVirtualization="true" AllowClear="true" Multiple="true" Style="height: 300px"
<RadzenListBox AllowVirtualization="@Column.AllowCheckBoxListVirtualization" AllowClear="true" Multiple="true" Style="height: 300px"
TValue="IEnumerable<object>" Value=@Column.GetFilterValue() Change="@ListBoxChange"
Data=@filterValues Count=@filterValuesCount LoadData="@LoadFilterValues"
AllowFiltering="@(!string.IsNullOrEmpty(Column.GetFilterProperty()) && PropertyAccess.GetPropertyType(typeof(TItem), Column.GetFilterProperty()) == typeof(string))"
Expand Down

0 comments on commit b1b6499

Please sign in to comment.