Modify cell contents of a column in fnRowCallback where column position changes dynamically
Modify cell contents of a column in fnRowCallback where column position changes dynamically
Hi all, I'm using fnRowCallback to get modify a row's data
[code]var txtName = aData["name"];
$('td:eq(3)', nRow).html(txtName +"
View Details");[/code]
However, the column display in the table is dynamic, the user may show or hide any single column they wish.
Using a static number "3" would cause the additional div to appear at other intended columns.
Is there a way to modify the cell contents of all rows or a certain column dynamically?
[code]var txtName = aData["name"];
$('td:eq(3)', nRow).html(txtName +"
View Details");[/code]
However, the column display in the table is dynamic, the user may show or hide any single column they wish.
Using a static number "3" would cause the additional div to appear at other intended columns.
Is there a way to modify the cell contents of all rows or a certain column dynamically?
This discussion has been closed.
Replies
Allan