This question is locked. New answers and comments are not allowed.
Hello,
For Server editing in grid, I have added template for radio button (for boolean value in model).
In controller I am always getting 'false' value in post action of update button, even I selected 'Accept' button.
columns.Add
(c =>
{%>
<%=Html.RadioButton("Enable" + index, "", c.IsAccountEnabled, new { id = "rdAccept" })%>
Accept<br />
<%=Html.RadioButton("Enable" + index++, "", !c.IsAccountEnabled, new { id = "rdReject" })%>
Reject
<%}
)
.Title("Is account Enabled")
;
For Server editing in grid, I have added template for radio button (for boolean value in model).
In controller I am always getting 'false' value in post action of update button, even I selected 'Accept' button.
columns.Add
(c =>
{%>
<%=Html.RadioButton("Enable" + index, "", c.IsAccountEnabled, new { id = "rdAccept" })%>
Accept<br />
<%=Html.RadioButton("Enable" + index++, "", !c.IsAccountEnabled, new { id = "rdReject" })%>
Reject
<%}
)
.Title("Is account Enabled")
;