views:

180

answers:

0

I am using jquery datatable in my asp.net mvc (C#) application

Radio button is not selected by default when using aoColumns of jquery datatable in google chrome and Firefox.

Html:

 <td>
    <%=Html.RadioButton("Password" + item.PasswordRequestId, RequestStatus.GRANT, true, new { @id = "RequestGt" + +item.PasswordRequestId })%>
  </td>

Script:

 $('#PendingRequestList').dataTable({ "aaSorting": [[1, "asc"]], "aoColumns": [{ "sType": "html" }, { "bSortable": false, "bSearchable": false }, { "bSortable": false, "bSearchable": false }]});

The last column contains the radio buttons. When i removed the aoColumns from the datatable it worked perfect.

This works fine only in IE (with aoColumns), but not with Chrome and Firefox.