aoColumnDefs visibility with fnFooterCallback

aoColumnDefs visibility with fnFooterCallback

sregansregan Posts: 3Questions: 0Answers: 0
edited October 2013 in General
I've got some fields set as bVisible false

"aoColumnDefs" : { "bVisible" => false, "aTargets" =>[5] }

which works fine in the DT body, but when I'm using a footer callback the aiDisplay param list doesn't reflect the hidden columns.

function fn_datatable_footer( nRow, aaData, iStart, iEnd, aiDisplay )

Is it supposed to? Is there another way to get this information?

the values are iStart=0, iEnd=10, aiDisplay = [0,1,2,3,4,5,6,7,8,9]

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    The 5th parameter ( `aiDisplay` in this case) reflects the rows, not the columns. The only reflection of the columns in the callback is in the first parameter - the node.

    Allan
This discussion has been closed.