I have a table html with 3 columns and 3 lines and when I select, for example radio button of line number 2, line number 1 uncheck.
@if (Model != null && Model.Tabela1!= null && Model.Tabela1.Count > 0)
{
for (int i = 0; i < Model.Tabela1.Count; i++)
{
<table id="tbl" class="table table-bordered table-hover dataTable">
<thead>
<tr role="row">
<th>Inserir</th>
<th>Excluir</th>
<th>Descrição</th>
</tr>
</thead>
<tbody>
<tr role="row" data-row-index="0">
<td data-id="@Model.Tabela1[i].id"><input name="chkSelecionar" id="chkSelecionaInsere" type="radio"/></td>
<td data-id="@Model.Tabela1[i].id"><input name="chkSelecionar" id="chkSelecionaExcluir" type="radio"/></td>
<td>@Model.Tabela1.descricao</td>
</tr>
}
}
</tbody>
</table>
Note: If it were feasible, you could change the Radio button through the Checkbox.