LabelPosition Problem (tested in versions 21.0.55, 21.0.58)

Hi there.

I have the following radio buttons and they work fine :

<div class="radio-control">

                    <SfRadioButton Label="Positive" Value="1" Name="Coombs"  @bind-Checked="birth.Coombs"></SfRadioButton>

                    <SfRadioButton Label="Negative" Value="2" Name="Coombs" @bind-Checked="birth.Coombs"></SfRadioButton>

</div>


Whenever I try to declare  LabelPosition="RadioLabelPosition.Before" in any of them (or both) , I get the following Compiler Error :

Severity Code Description Project File Line Suppression State

Error CS1662 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 BabiesStatistics

e.g 

<SfRadioButton Label=" Positive" Value="1" Name="Coombs" LabelPosition="RadioLabelPosition.Before" @bind-Checked="birth.Coombs"></SfRadioButton>

if I take out the bind : 

<SfRadioButton Label="Θετική" Value="1" Name="Coombs" LabelPosition="RadioLabelPosition.Before"></SfRadioButton>
I get the compiler error :

Severity Code Description Project File Line Suppression State

Error CS0234 The type or namespace name 'LabelPosition' does not exist in the namespace '__Blazor.Syncfusion.Blazor.Buttons' (are you missing an assembly reference?) BabiesStatistics


2 Replies

RI Rigakis June 1, 2022 06:56 PM UTC

Hi,

I found out that for the non in list box radio buttons, the parameter is  LabelPosition="LabelPosition.Before" and not  LabelPosition="RadioLabelPosition.Before"




YA YuvanShankar Arunagiri Syncfusion Team June 3, 2022 04:01 AM UTC

Hi Rigakis,


Thanks for sharing the solution with us, please let us know if you need any other assistance.


Regards,

Yuvan Shankar A


Loader.
Up arrow icon