Anyone get fnAddTr and colvis to work together?
Anyone get fnAddTr and colvis to work together?
When I use AddTr it doesn't seem to get the visibility. It must overwrite the display html that gets used on redraw? Anyone get these two to work together? I'm using AddTr because I have classes and lots of other data for each row I insert into the table.
This discussion has been closed.
Replies
[code]
var iIndex = this.oApi._fnAddData( oSettings, aData );
var numcols = nTds.length;
var j = -1;
for ( var i=0 ; i
Allan
[code]
var numcols = nTds.length;
var j = -1;
for ( var i=0 ; i
[code]//oSettings.aoData[ iIndex ].nTr = nTr;[/code]
everything works right, even the hidden/visible columns, but of course I lose all my classes and stuff.
Allan
[code]
/* Add the data and then replace DataTable's generated TR with ours */
var numcols = nTds.length;
var iIndex = this.oApi._fnAddData( oSettings, aData );
var j = -1;
for ( var i=0 ; i
Allan