How to capture the value from one column in a different column inside the fnRender function

How to capture the value from one column in a different column inside the fnRender function

suryasnatsuryasnat Posts: 2Questions: 0Answers: 0
edited April 2012 in DataTables 1.9
[code]
$(document).ready(function () {
$("#documents").dataTable({
"sAjaxSource": "data/test.json",
"bDeferRender": true,
"bProcessing": true,
"sPaginationType": "full_numbers",
"bJQueryUI": true,
"aoColumnDefs": [
{ "mDataProp": "title" , "aTargets": [ 0 ] },
{ "mDataProp": "version" , "fnRender": function (oObj, val) {
console.log(oObj.aData[8]);
return val;
}, "aTargets": [ 1 ]},
{ "mDataProp": "date" , "aTargets": [ 2 ] },
{ "mDataProp": "tagList" , "fnRender": function (o, val) {
var t = '

Replies

  • allanallan Posts: 63,692Questions: 1Answers: 10,500 Site admin
    > (evaluating 'oObj.aaData[8]')

    Do you mean oObj.aData[8]?

    Allan
  • suryasnatsuryasnat Posts: 2Questions: 0Answers: 0
    Yes. Sorry for the typo.
This discussion has been closed.