I have a kendogrid:
@(Html.Kendo().Grid<OAIWebInterface.Models.Leadership>()
.Name("LeadershipGrid")
.Columns(columns =>
{
columns.Bound(c => c.LeadershipID).Width(150);
columns.Bound(c => c.Organization).Width(150);
columns.Command(command => { command.Edit(); }).Width(95);
})
.Editable(editable => editable.Mode(GridEditMode.PopUp).TemplateName("LeadershipEditorTemplate"))
.HtmlAttributes(new { style = "max-height: 350px;" })
.DataSource(dataSource => dataSource
.Ajax()
.Model(model => model.Id(p => p.LeadershipID))
.Read(read => read.Action("Leadership_Read", "AnnualSummary", new { ASId = Model.AnnualSummaryID}))
.Update(update => update.Action("LeadershipPopup_Update", "AnnualSummary"))
)
)
I have a Editor Template called "LeadershipEditorTemplate" in which I got the following code:
@Html.RadioButtonFor(x => x.Reimburse, true)Yes
@Html.RadioButtonFor(x => x.Reimburse, false)No
On edit kendo row, one of the radio buttons in the editor template do not get checked. For example, Yes should be checked when the Reimburse value is true/1 and No should be checked when the value is set to false/0.
I verified that Reimbuse has a value when in template, but can't make it work with radio buttons.
I would appreciate any input on this issue.
Thanks.