[ColVis] : How to know how many columns are curently displayed in the table
[ColVis] : How to know how many columns are curently displayed in the table
Hi,
I use datatables with Service side procesing and ColVis plugin.
I would like to replace text in a column by an image with fnRowCallback fonction (http://datatables.net/usage/callbacks).
My code :
[code]
"fnRowCallback": function( nRow, aData, iDisplayIndex ) {
if ( aData[10] == "details_auth" ){
$('td:eq(3)', nRow).html( '
I use datatables with Service side procesing and ColVis plugin.
I would like to replace text in a column by an image with fnRowCallback fonction (http://datatables.net/usage/callbacks).
My code :
[code]
"fnRowCallback": function( nRow, aData, iDisplayIndex ) {
if ( aData[10] == "details_auth" ){
$('td:eq(3)', nRow).html( '
This discussion has been closed.
Replies
Allan
I tried
[code]$('td:eq('+this.fnColumnIndexToVisible(10)+')', nRow).html('.....');[/code] with 10 = index of data column and it runs! Tanks a lot!!!