fnSetColumnVis & columnFilter

fnSetColumnVis & columnFilter

CatyNetCatyNet Posts: 3Questions: 0Answers: 0
edited August 2013 in General
If I use fnSetColumnVis with a "", I have no problem.

My function goes off with the event "onChange".

[code]
function fnShowHide( iCol, iDel, iDelete, label ) {
var oTable = $('#appListTable').dataTable();

var bVis = oTable.fnSettings().aoColumns[iCol].bVisible;
oTable.fnSetColumnVis( iCol, true );
oTable.fnSetColumnVis( iDel, false );
oTable.fnSetColumnVis( iDelete, false );
}
[/code]

My problem is about the filters which are on the "tfoot". The filters disappeared. So I added this line :

[code]
oTable.columnFilter( {aoColumns: [ , , { type: "text" }, , , , ] });
[/code]

But my filter always bind at my column who is disappear.

Somebody has a solution ?

Replies

  • CatyNetCatyNet Posts: 3Questions: 0Answers: 0
    A solution will be to use fnVisibleToColumnIndex on the params of fnFilter.
This discussion has been closed.