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

eruinaeruina Posts: 4Questions: 0Answers: 0
edited March 2013 in General
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?

Replies

  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin
    I think you'd be better off using mRender for this, as that is the sort of case mRender is designed for.

    Allan
  • eruinaeruina Posts: 4Questions: 0Answers: 0
    I'll try again using mRender. Thanks!
This discussion has been closed.