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
suryasnat
Posts: 2Questions: 0Answers: 0
[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 = '
$(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 = '
This discussion has been closed.
Replies
Do you mean oObj.aData[8]?
Allan