こんにちは、以下のコードを使用してjqueryデータテーブルを作成しました..Jquery Datatable null列
列の電子メールIDと有効日はNULL可能です。私はそれが
var tblAllKeys = $('#tblAllKeys').dataTable({
"bDestroy" : true,
"bProcessing" : true,
"bServerSide" : true,
"bLenthChange" : false,
"iDisplayLength" : 10,
"sAjaxSource" : "loadAllKeys",
"oLanguage" : {
"sSearch" : "Search By Activation Key:"
},
"aoColumns" : [
{"sTitle" : "No.","mData" : null,"aTargets": [ 0 ],
"fnRender" : function(obj) {
var columnIndex = obj.oSettings._iDisplayStart + obj.iDataRow+1
return columnIndex;
}
},
{"sTitle" : "Activation Key","mData" : "key", "bSearchable" : true},
{"sTitle" : "Email ID","mData" : "email" , "bSearchable" : false},
{"sTitle" : "App Edition","mData" : "edition", "bSearchable" : false},
{"sTitle" : "Batch Code","mData" : "batch", "bSearchable" : false},
{"sTitle" : "Activated Date","mData" : "aDate" , "bSearchable" : false},
{"sTitle" : "Generated Date","mData" : "gDate", "bSearchable" : false},
{"sTitle" : "Status","mData" : "status", "bSearchable" : false},
],
"fnServerData" : function(sSource, aoData, fnCallback) {
$.ajax({
"dataType" : 'json',
"type" : "GET",
"url" : sSource,
"data" : aoData,
"success" : fnCallback
});
},
"sPaginationType" : "full_numbers",
});
'nullable'または列自体は存在しませんか? –
カラムが存在しません。唯一の値がnullです – boycod3