fnSetColumnVis & columnFilter
fnSetColumnVis & columnFilter
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 ?
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 ?
This discussion has been closed.
Replies