Using DT_RowId within mRender to create a link

Using DT_RowId within mRender to create a link

rhapsodyrhapsody Posts: 2Questions: 0Answers: 0
edited May 2013 in DataTables 1.9
I am trying to reference the DT_RowId to create links using mRender. All my rows are correctly getting their id from the server-side DT_RowId. How can I refer to the row Id? Here is the code that produces "undefined" in place of the variable.
[code]
"mRender": function ( data, type, full ) {
return '' + data + '';
}
[/code]
Thanks.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Use `full.DT_RowId` in this case. The third parameter passed to mRender is the data object for the row.

    Allan
This discussion has been closed.