Update to 7.1 does not allow nullable property in Value #1794

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

Originally created by @zjelev on GitHub (Jun 26, 2025).

I have this code working fine with Radzen.Blazor 7.0.8

Image

After updating to 7.1.0 ot above the Value=accident.AccidentKind?.AccidentType throws complile-time errors:

  • Cannot convert lambda expression to intended delegate type because some of the return types in the block are not implicitly convertible to the delegate return type
  • The type arguments for method 'TypeInference.CreateRadzenDropDown_1(RenderTreeBuilder, int, int, IEnumerable, int, bool, int, string, int, TValue, int, EventCallback)' cannot be inferred from the usage. Try specifying the type arguments explicitly.

Making it Value=accident.AccidentKind.AccidentType resolves the errors, but the current app logic requires it to be AccidentKind?.

Originally created by @zjelev on GitHub (Jun 26, 2025). I have this code working fine with Radzen.Blazor 7.0.8 ![Image](https://github.com/user-attachments/assets/010b050e-c896-40db-bf82-9002d6d679ff) After updating to 7.1.0 ot above the Value=accident.AccidentKind?.AccidentType throws complile-time errors: - Cannot convert lambda expression to intended delegate type because some of the return types in the block are not implicitly convertible to the delegate return type - The type arguments for method 'TypeInference.CreateRadzenDropDown_1<TValue>(RenderTreeBuilder, int, int, IEnumerable, int, bool, int, string, int, TValue, int, EventCallback<TValue>)' cannot be inferred from the usage. Try specifying the type arguments explicitly. Making it Value=accident.AccidentKind.AccidentType resolves the errors, but the current app logic requires it to be AccidentKind?.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#1794