This is a migrated thread and some comments may be shown as answers.

[Solved] server editing (Radio button issue)

0 Answers 97 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
harshada patil
Top achievements
Rank 1
harshada patil asked on 11 Mar 2010, 02:58 PM
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")
            ;
Tags
Grid
Asked by
harshada patil
Top achievements
Rank 1
Share this question
or