3 Answers, 1 is accepted
Hello, Michael,
A possible workaround would be to set True and False as string options for the RadioGroup, and cast them to bool on the server. If the checkboxes were not selected/unselected before submitting, the value should be sent as null.
I hope that will be acceptable to you. Let me know if you have further questions.
Regards,
Martin
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Martin,
While that would be a potential solution it makes it a workaround because I cannot model bind the control to a nullable bool - e.g. RadioGroupFor(Model.NullableBooleanField) and have it automagically handle everything for me. I'm not averse to having to manually handle a single control but it does make it a challenge when all other kendo controls on the view are model bound and this one is not. If I'm missing something here and it can be done please let me know.
Regards,
Michael
Hello, Michael,
Unfortunately initializing the component for a string is the only way to bind it to a Model. And the suggested approach to convert to bool on the server is indeed a workaround, as the requirement is not supported out-of-the-box. On this Stackoverflow thread you can find ideas how to convert string to bool on the server. I hope it will be helpful.
Let me know if you have any further questions.
Regards,
Martin
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.