RadzenGrid - FilterOperator Enum.Parse issue #188

Closed
opened 2026-01-29 17:33:02 +00:00 by claunia · 4 comments
Owner

Originally created by @dpozimski on GitHub (Sep 2, 2021).

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Create RadzenGrid with filterable column
  2. Subscribe to Load callback
  3. Try to read FIlters collection from LoadDataArgs object by doing simple .ToList()
  4. If user specified any filter in RadzenGrid the error will occur. System.ArgumentException: Requested value '!=' was not found.

Alternatively link your repo with a sample project that can be run.

Expected behavior
Filters collection from LoadDataArgs can be created.

Problem is here:
b9e992f118/Radzen.Blazor/RadzenGrid.razor (L841)
and here:
b9e992f118/Radzen.Blazor/RadzenGrid.razor (L843)

Solution: please make a dictionary of FilterOperators in string representation to the FIlterOperator enum value

Originally created by @dpozimski on GitHub (Sep 2, 2021). **Describe the bug** A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the behavior: 1. Create RadzenGrid with filterable column 2. Subscribe to Load callback 3. Try to read FIlters collection from LoadDataArgs object by doing simple .ToList() 4. If user specified any filter in RadzenGrid the error will occur. `System.ArgumentException: Requested value '!=' was not found.` Alternatively link your repo with a sample project that can be run. **Expected behavior** Filters collection from LoadDataArgs can be created. Problem is here: https://github.com/radzenhq/radzen-blazor/blob/b9e992f118a75165fe70a55dfd4b2c2b4b56a124/Radzen.Blazor/RadzenGrid.razor#L841 and here: https://github.com/radzenhq/radzen-blazor/blob/b9e992f118a75165fe70a55dfd4b2c2b4b56a124/Radzen.Blazor/RadzenGrid.razor#L843 Solution: please make a dictionary of FilterOperators in string representation to the FIlterOperator enum value
Author
Owner

@dpozimski commented on GitHub (Sep 2, 2021):

PR with fix:
https://github.com/radzenhq/radzen-blazor/pull/210

@dpozimski commented on GitHub (Sep 2, 2021): PR with fix: https://github.com/radzenhq/radzen-blazor/pull/210
Author
Owner

@enchev commented on GitHub (Sep 3, 2021):

Hi @dpozimski ,

I'm unable to reproduce such problem on our demo with LoadData: https://blazor.radzen.com/datagrid-loaddata
image
image

Any additional info?

@enchev commented on GitHub (Sep 3, 2021): Hi @dpozimski , I'm unable to reproduce such problem on our demo with LoadData: https://blazor.radzen.com/datagrid-loaddata ![image](https://user-images.githubusercontent.com/5804953/131964343-145d44ce-2a66-4094-b8a7-b0db9c7cc5f5.png) ![image](https://user-images.githubusercontent.com/5804953/131964388-ee263885-b5c9-4084-be93-3fbdccff0ad5.png) Any additional info?
Author
Owner

@dpozimski commented on GitHub (Sep 3, 2021):

Yes, the error does not occur when using RadzenDataGrid. You need to use RadzenGrid to reproduce that in the same way.

@dpozimski commented on GitHub (Sep 3, 2021): Yes, the error does not occur when using **RadzenDataGrid**. You need to use **RadzenGrid** to reproduce that in the same way.
Author
Owner

@enchev commented on GitHub (Sep 3, 2021):

RadzenGrid is our legacy DataGrid component. Please use RadzenDataGrid instead.

@enchev commented on GitHub (Sep 3, 2021): RadzenGrid is our legacy DataGrid component. Please use RadzenDataGrid instead.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#188