4.30.3 Error when SetFilterValue in RadzenDataGridColumn.cs #1221

Open
opened 2026-01-29 17:50:37 +00:00 by claunia · 0 comments
Owner

Originally created by @maximebono on GitHub (Apr 30, 2024).

Hello,

We are running into an issue with the RadzenDataGridColumn since update to version 4.30.3

Describe the bug

Since this version, we are not able to bind data and filter. It's seem, this is related to this commit : cab9b0bd1e

and this code :

if (PropertyAccess.IsEnum(FilterPropertyType) || (PropertyAccess.IsNullableEnum(FilterPropertyType) && value != null))
{
    value = (int)value;
}

We are passing "PropertyAccess.IsEnum(FilterPropertyType)" (result is true) but the "value" is null so "value = (int)value;" is called and fail. "value != null" should be called for both conditions.

Screenshots
image

Desktop (please complete the following information):
OS: Windows 11
Browser: Chrome, Firefox

Thank you !

Originally created by @maximebono on GitHub (Apr 30, 2024). Hello, We are running into an issue with the RadzenDataGridColumn since update to version 4.30.3 **Describe the bug** Since this version, we are not able to bind data and filter. It's seem, this is related to this commit : https://github.com/radzenhq/radzen-blazor/commit/cab9b0bd1eea6166a733080c577da52a1b019fc8 and this code : ``` if (PropertyAccess.IsEnum(FilterPropertyType) || (PropertyAccess.IsNullableEnum(FilterPropertyType) && value != null)) { value = (int)value; } ``` We are passing "PropertyAccess.IsEnum(FilterPropertyType)" (result is true) but the "value" is null so "value = (int)value;" is called and fail. "value != null" should be called for both conditions. **Screenshots** ![image](https://github.com/radzenhq/radzen-blazor/assets/29730549/53d2057d-16b5-4ca6-9fb2-5e05a3f7248f) **Desktop (please complete the following information):** OS: Windows 11 Browser: Chrome, Firefox Thank you !
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#1221