dataTable redraws / refreshes after row click when using KeyTable

dataTable redraws / refreshes after row click when using KeyTable

leithondudeleithondude Posts: 1Questions: 0Answers: 0
edited October 2013 in General
[code]
$(document).ready(function () {
var oTable = $("table").dataTable({
"sDom": '<"top clearfix"fl>rt<"bottom"ip>',
"sPaginationType": "full_numbers",
"aaSorting": [[0, "desc"]],
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "src",
"bLengthChange": false,
"iDisplayLength": 20,
"aoColumnDefs": [{ "bVisible": false, "aTargets": [1] }],
"sServerMethod": "POST",
"fnRowCallback": function (nRow, aData, iDisplayIndex, iDisplayIndexFull) {
for (var x = 0; x <= aData.length; x++) {
if (x != 2) {
var td = $('td:eq(' + (x - 1) + ')', nRow);
if (aData[x] === "True")
td.addClass("center").html('');
else if (aData[x] === "False")
td.addClass("center").html('');
}
}
},
"bAutoWidth": false,
"bSortClasses": false,
"oLanguage": {
"oPaginate": {
"sPrevious": "Back"
}
},
"sScrollY": "640px", "sScrollX": "150%",
"fnInitComplete": function (oSettings, json) {
var keys = new KeyTable({
"table": document.getElementById("tbl_171000"),
"datatable": oTable
});
}
});
});
[/code]
This discussion has been closed.