Linkable Datafield

Linkable Datafield

codemonkey65codemonkey65 Posts: 14Questions: 3Answers: 0
edited October 2012 in DataTables 1.8
I am trying to turn one of my columns into a link allowing me to re-direct to another page using the value from that link as a parameter to the re-direct page.

I have tried the following with no success.

var table = $('#grdLoadingData').dataTable({
"bLengthChange": false,
"bPaginate": true,
"sPaginationType": "full_numbers",
"aaData": records,
"sDom": "T<'clear'>lfrtip",
"oTableTools": {
"sRowSelect": "multi",
"sSwfPath": "../../scripts/jquery/media/swf/copy_csv_xls_pdf.swf",
"aButtons": ["print"]
},
"fnRowCallback": function (nRow, aaData, iDisplayIndex) {
$('td:eq(0)', nRow).html('' +
nRow[1] + '');
return nRow;
},
...

It would seem I'm missing something in the fnRowCallback but am unsure how to proceed. The result in Column 1 of my grid contains the value 'undefined' as opposed to the value that should display (an order number).

If anyone can help it would be greatly appreciated.
This discussion has been closed.