RadzenDataGrid Simple Filter Mode with CheckBoxList Column Filter #1751

Closed
opened 2026-01-29 17:58:04 +00:00 by claunia · 1 comment
Owner

Originally created by @apinto-hnservices on GitHub (May 6, 2025).

Bug Report: RadzenDataGrid Crash when Filtering with CheckBoxList

Describe the Issue

RadzenDataGrid crashes when setting the FilterMode of the grid to FilterMode.Simple and setting one or more columns specifically to FilterMode.CheckBoxList. The issue occurs specifically when selecting an item from the CheckBoxList filter. Typing directly into text-based filters continues to work as expected.

Steps to Reproduce

  1. Set FilterMode="FilterMode.Simple" on RadzenDataGrid.
  2. Configure at least one column with FilterMode="FilterMode.CheckBoxList".
  3. Run the application and click on a checkbox item in the filter dropdown.

Expected Behavior

Selecting items from the CheckBoxList filter should correctly filter the data without crashing.

Actual Behavior

The DataGrid crashes immediately upon selecting any item from the CheckBoxList filter.

Example Code

<RadzenDataGrid @ref="grid" AllowFiltering="true" AllowColumnResize="true"
                FilterMode="FilterMode.Simple" PageSize="5" AllowPaging="true" AllowSorting="true"
                Data="@employees" ColumnWidth="300px"
                FilterCaseSensitivity="@filterCaseSensitivity" LogicalFilterOperator="@logicalFilterOperator">
    <Columns>
        <RadzenDataGridColumn Property="@nameof(Employee.EmployeeID)" Filterable="false" Title="ID" Frozen="true" Width="80px" TextAlign="TextAlign.Center" />
        <RadzenDataGridColumn Title="Photo" Sortable="false" Filterable="false" Width="200px">
            <Template Context="data">
                <RadzenImage Path="@data.Photo" class="rz-gravatar" AlternateText="@(data.FirstName + \" \" + data.LastName)" />
            </Template>
        </RadzenDataGridColumn>
        <RadzenDataGridColumn Property="FirstName" Title="First Name" FilterMode="FilterMode.CheckBoxList" />
        <RadzenDataGridColumn Property="LastName" Title="Last Name" Width="150px"/>
        <RadzenDataGridColumn Property="BirthDate" Title="Birth Date" FormatString="{0:d}" />
        <RadzenDataGridColumn Property="@nameof(Employee.Country)" Title="Country" />
        <RadzenDataGridColumn Property="Notes" Title="Notes" />
    </Columns>
</RadzenDataGrid>

Environment

  • Radzen.Blazor version: 6.6.4
  • Blazor type: Server
  • .NET version: 9

Additional Information

  • The issue does not occur when using text-based filters.
  • Error details from browser console or application logs (if any) would be helpful to include.
Originally created by @apinto-hnservices on GitHub (May 6, 2025). ### Bug Report: RadzenDataGrid Crash when Filtering with CheckBoxList #### Describe the Issue RadzenDataGrid crashes when setting the `FilterMode` of the grid to `FilterMode.Simple` and setting one or more columns specifically to `FilterMode.CheckBoxList`. The issue occurs specifically when selecting an item from the CheckBoxList filter. Typing directly into text-based filters continues to work as expected. #### Steps to Reproduce 1. Set `FilterMode="FilterMode.Simple"` on `RadzenDataGrid`. 2. Configure at least one column with `FilterMode="FilterMode.CheckBoxList"`. 3. Run the application and click on a checkbox item in the filter dropdown. #### Expected Behavior Selecting items from the CheckBoxList filter should correctly filter the data without crashing. #### Actual Behavior The DataGrid crashes immediately upon selecting any item from the CheckBoxList filter. #### Example Code ```razor <RadzenDataGrid @ref="grid" AllowFiltering="true" AllowColumnResize="true" FilterMode="FilterMode.Simple" PageSize="5" AllowPaging="true" AllowSorting="true" Data="@employees" ColumnWidth="300px" FilterCaseSensitivity="@filterCaseSensitivity" LogicalFilterOperator="@logicalFilterOperator"> <Columns> <RadzenDataGridColumn Property="@nameof(Employee.EmployeeID)" Filterable="false" Title="ID" Frozen="true" Width="80px" TextAlign="TextAlign.Center" /> <RadzenDataGridColumn Title="Photo" Sortable="false" Filterable="false" Width="200px"> <Template Context="data"> <RadzenImage Path="@data.Photo" class="rz-gravatar" AlternateText="@(data.FirstName + \" \" + data.LastName)" /> </Template> </RadzenDataGridColumn> <RadzenDataGridColumn Property="FirstName" Title="First Name" FilterMode="FilterMode.CheckBoxList" /> <RadzenDataGridColumn Property="LastName" Title="Last Name" Width="150px"/> <RadzenDataGridColumn Property="BirthDate" Title="Birth Date" FormatString="{0:d}" /> <RadzenDataGridColumn Property="@nameof(Employee.Country)" Title="Country" /> <RadzenDataGridColumn Property="Notes" Title="Notes" /> </Columns> </RadzenDataGrid> ``` #### Environment * **Radzen.Blazor version**: 6.6.4 * **Blazor type**: Server * **.NET version**: 9 #### Additional Information * The issue does not occur when using text-based filters. * Error details from browser console or application logs (if any) would be helpful to include.
Author
Owner

@enchev commented on GitHub (May 7, 2025):

Simple and advanced filtering modes cannot be mixed - it's explicitly stated in our demo:

Image

@enchev commented on GitHub (May 7, 2025): Simple and advanced filtering modes cannot be mixed - it's explicitly stated in our demo: ![Image](https://github.com/user-attachments/assets/dddf7702-50ed-4905-b111-7d791a4ab1f0)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#1751