Sorun datatable da sayfalama yapıldığında, örn ekranda ki tüm kayıtları seçmek istediğinde, diğer sayfalarda olan kayıtları seçemiyor. Sorgu ile sorun düzeltiliyor.
function talepsatirdoldur() {
$('#example').DataTable().rows().iterator('row', function (context, index) {
var node = $(this.row(index).node());
var uruncode = $(node).find('.yeni').val();
var name = $(node).find('.yeniacik').val();
$.ajax({
async: false,
type: "POST",
url: "/WOrders/UnitLineList",
contentType: "application/json",
dataType: "json",
data: "{'Name':'" + name + "'}",
success: function (response) {
if (response.length > 0) {
$(node).find('.unit_line_select').html("");
$(response).each(function () {
$(node).find('.unit_line_select').append("<option value=" + this.UnitRef + ">" + this.UnitCode + "</option>");})
}
}
})
$.ajax({
async: false,
type: "POST",
url: "/WOrders/Specodes",
contentType: "application/json",
dataType: "json",success: function (response) {
if (response.length > 0) {
$(node).find('.specodes_select').html("");
$(response).each(function () {
$(node).find('.specodes_select').append("<option value=" + this.ID + ">" + this.Code + "</option>");})
}
}
})
});
}
Yorumlar (0)
Yorum yazın