datatable reorder modal open problem
datatable reorder modal open problem
ogulcanerdinc
Posts: 1Questions: 1Answers: 0
hello my friend.
edit does not work when I reorder and respond to the table.he doesn't count on the button.
<th>TC NO</th>
<th>Ad</th>
<th>Soyad</th>
<th style="width:5%">Sil</th>
<th style="width:5%">Düzelt</th>
<th style="width:5%">Seçmen Detay</th>
</tr>
</thead>
@foreach (var Secmen in Model)
{
<tr>
<td>@Secmen.TCNo</td>
<td>@Secmen.Ad</td>
<td>@Secmen.Soyad</td>
<td><a href='/Secmen/SecmenSil/@Secmen.ID' class='btn btn-shadow btn-group-md' onclick="return confirm('@Secmen.TCNo TC Numaralı @Secmen.Ad @Secmen.Soyad İsim Soyisimli Kişiyi Silmek İstediğinizden Emin Misiniz?');"><span class="fas fa-trash-alt"></span></td>
<td><a data-id="@Secmen.ID" class="btn btn-shadow btn-md" /><i class="fas fa-edit"></i></td> //edit here.
<td><a href="/SecmenDetay/SecmenDetay/@Secmen.ID" class="btn btn-shadow btn-group-md" id="btn-update" /><i class="fas fa-search"></i></td>
</tr>
}
@Html.PagedListPager(Model, _sayfaNo => Url.Action("Secmen", "Secmen", new { SayfaNo = _sayfaNo }))
</div>
//script
(document).ready(function () {
('.table').on('click', 'btn-md', function () {
$("#myModal").modal("show");
...
//script
var table = ('#table').DataTable({
"language": {
"url": "//cdn.datatables.net/plug-ins/1.10.19/i18n/Turkish.json",
},
"pageLength": 100,
'iDisplayLength': 100,
"paging": false,
"ordering": false,
rowReorder: {
selector: "td:nth-child(3)"
},
responsive: true,
"renderer": $.fn.dataTable.Responsive.renderer.tableAll({
tableClass: 'table'
})
});
This discussion has been closed.
Answers
Hi @ogulcanerdinc ,
Is this editing with Editor, or your own editing code? I can't see any mention of Editor there.
We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin