Datatables with server side processing and jquery.each function doesnt work

Datatables with server side processing and jquery.each function doesnt work

samuelsamuel Posts: 12Questions: 0Answers: 0
edited November 2012 in General
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('

Replies

  • jefffan24jefffan24 Posts: 18Questions: 0Answers: 0
    First off on line 20 of the code you posted:

    [code]
    $('td:eq(20)', nRow).html('
  • samuelsamuel Posts: 12Questions: 0Answers: 0
    Thanks Jefffan. progressBar worked. But i do have other functions on tfoot that i want to work. I tried this but it didnt worked

    "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
This discussion has been closed.