Error after Update to 6.0

2 Answers 81 Views
Grid
Hendrik
Top achievements
Rank 2
Iron
Iron
Iron
Hendrik asked on 24 May 2024, 08:01 AM

Right from the start I get following errors in den Dircect Window:

System.ArgumentNullException: Value cannot be null. (Parameter 'nullableType')
   at System.ArgumentNullException.Throw(String paramName)
   at System.Nullable.GetUnderlyingType(Type nullableType)
   at Telerik.Blazor.Common.Filter.FilterOperatorFactory.GetFilterOperatorsForType(Type type, ITelerikStringLocalizer localizer)
   at Telerik.Blazor.Components.Common.BoundColumnBase.ThrowIfInvalidDefaultFilterOperator()
   at Telerik.Blazor.Components.Common.BoundColumnBase.OnParametersSet()
   at Microsoft.AspNetCore.Components.ComponentBase.CallOnParametersSetAsync()
   at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync()
   at Telerik.Blazor.Components.Common.ColumnBase.SetParametersAsync(ParameterView parameters)

I can not load any Grid anymore. The error shows:

System.ArgumentNullException

Value cannot be null. (Parameter 'nullableType')

I think it has something to do with "DefaultFilterOperator" but I cannot figure out it myself

With 5.1.1 everything works just fine.

Nadezhda Tacheva
Telerik team
commented on 27 May 2024, 04:08 PM

Hi Hendrik,

We haven't received reports for such an issue so far. To move forward with the investigation, please provide an isolated runnable sample that reproduces the problem. This will allow me to debug it and find the root cause.

Thank you in advance for your cooperation!

Ryan
Top achievements
Rank 1
commented on 28 May 2024, 10:53 PM

I am experiencing the same issue on several, but not all grids since the upgrade. It goes away when I change the filter mode to None... obviously not what I want to do...
Nadezhda Tacheva
Telerik team
commented on 31 May 2024, 09:45 AM

Hi Ryan,

Can you provide a minimal reproducible example, so we can debug this? You may include some dummy data and mimic your exact Grid configuration.

Daniel
Top achievements
Rank 1
commented on 05 Jun 2024, 04:28 PM | edited

Hi, the same for us. Had to step back to v5.1.1... Any ideas what the problem might be?
David
Top achievements
Rank 1
commented on 05 Jun 2024, 09:03 PM

I am getting the same issue on one of the grids in our Blazor WASM app, after upgrade.

Error goes away if I set FilterMode to None, which is not a fix

Nadezhda Tacheva
Telerik team
commented on 06 Jun 2024, 07:32 AM

Hi all,

I am not able to confirm the root cause without a reproduction but I suspect the issue may be related to a regression that we had in 6.0.0 related to filtering nullable types.

It has been fixed and we released a patch version a couple of days ago. Can you please upgrade to 6.0.2 and test again? If the issue persists, please provide an isolated sample that reproduces it, so we can investigate further.

Hendrik
Top achievements
Rank 2
Iron
Iron
Iron
commented on 06 Jun 2024, 01:50 PM

With 6.0.2 it is still not working...

2 Answers, 1 is accepted

Sort by
1
Accepted
Michael
Top achievements
Rank 1
Iron
answered on 07 Jun 2024, 10:06 AM

It seems like this issue is caused when there is a GridColumn with parameter "Field" set to a value that is not a property of the grid item model. Before 6.0.0 this was possible and did not cause an exception.

I have created a small example that lets you reproduce the error.

To reproduce just let the unit test run for one of the configurations v5 or v6. With v5 the test succeeds, with v6 it does not.

I hope this helps to fix the issue.

David
Top achievements
Rank 1
commented on 07 Jun 2024, 11:33 PM

Looks like it fixed the issue for me
Hendrik
Top achievements
Rank 2
Iron
Iron
Iron
commented on 09 Jun 2024, 08:20 AM

Thank you very much ! That fixed the problem ! 
0
Nadezhda Tacheva
Telerik team
answered on 11 Jun 2024, 08:18 AM

Hi all,

Thank you very much for your cooperation!

The behavior is caused by a regression in the Grid that you may track here: [Regression] Filterable Grid throws if a column field is not bound to a field from the model.

The workaround I'd suggest is to set the FieldType of the column.

Regards,
Nadezhda Tacheva
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources!
Tags
Grid
Asked by
Hendrik
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Michael
Top achievements
Rank 1
Iron
Nadezhda Tacheva
Telerik team
Share this question
or