Hello Syncfusion, I created a radio button that takes a bit of 1 or 0 as the data type in my database. However, when I save, the values of the radio button, they are saved successfully to the database. However, on edit, the corresponding value of true or false is not checked on my Edit form. Both the Yes and No fields remain unchecked yet one of them is supposed to be checked for either Yes or No. How can I achieve this ? I am using ASP.NET MVC - Javascript Radio Button for Syncfusion.
My Fields are:
<td style="text-align: left">Breast Feeding</td>
<td>
<input type="radio" name="small1" id="BreastFeeding1" class="FeedingButton"/><label for="BreastFeeding">Yes</label>
</td>
<td>
<input type="radio" name="small1" id="BreastFeeding2" class="FeedingButton" /><label for="BreastFeeding" >No</label>
</td>
My Javascript Declarations are:
$("#BreastFeeding1").ejRadioButton({
size: "medium",
value:true
});
$("#BreastFeeding2").ejRadioButton({
size: "medium",
value: false
});
I have attached my cshtml page for review and a sample video of what happens:
Attachment:
RadioButtonError_be661099.rar