Datatables with server side processing and jquery.each function doesnt work
Datatables with server side processing and jquery.each function doesnt work
Hi,
I have a data table where the value to it is populated by server side processing. I have this configuration
$(document).ready(function() {
g.oTable = $('.display').dataTable({
"aoColumns":[null,null,{ "sClass": "fancy"},null,null,null,null,null,null,null,null,null,null,null,{ "sClass": "fancy"},null,null,null,null,null,null,null,{ "sClass": "tdgreen"}],
"bServerSide": true,
"sAjaxSource": "/progress/Request",
"bProcessing": true,
"sPaginationType": "full_numbers",
"bScrollCollapse" : true,
"bPaginate" : true,
"bFilter": true,
"aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]],
"aaSorting": [],
"sScrollX": "100%",
"sScrollY": $(window).height()-200,
"fnRowCallback": function( nRow, aData, iDisplayIndex ) {
nRow.className = aData[23];
$('td:eq(20)', nRow).html('
I have a data table where the value to it is populated by server side processing. I have this configuration
$(document).ready(function() {
g.oTable = $('.display').dataTable({
"aoColumns":[null,null,{ "sClass": "fancy"},null,null,null,null,null,null,null,null,null,null,null,{ "sClass": "fancy"},null,null,null,null,null,null,null,{ "sClass": "tdgreen"}],
"bServerSide": true,
"sAjaxSource": "/progress/Request",
"bProcessing": true,
"sPaginationType": "full_numbers",
"bScrollCollapse" : true,
"bPaginate" : true,
"bFilter": true,
"aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]],
"aaSorting": [],
"sScrollX": "100%",
"sScrollY": $(window).height()-200,
"fnRowCallback": function( nRow, aData, iDisplayIndex ) {
nRow.className = aData[23];
$('td:eq(20)', nRow).html('
This discussion has been closed.
Replies
[code]
$('td:eq(20)', nRow).html('
"fnDrawCallback": function(oSettings){
$("tfoot input").keyup( function () {
/* Filter on the column (the index) of this element */
g.oTable.fnFilter( this.value, $("tfoot input").index(this) );
} );
//in addition to prog bar
});
Also do you have any suggestion for issue2?
Thanks,
Sam