access the value of a column named null
access the value of a column named null

"columns": [
{"data": "id"},
{ "data": null,
render: function( data ) {
presupuesto= data.cnt - data.cnt_apr;
presupuesto = presupuesto.toFixed(2);
return presupuesto;
}
},
]
I would like to be able to access that value in the null column when I double-click
$('#tblPrsp tbody').on('dblclick', 'tr', function () {
var idPrsp = tblPrsp.row( this ).data();
alert(idPrsp['null']);
});
This discussion has been closed.
Answers
Probably the easiest way is to use
cell().render()
. Here is an example:http://live.datatables.net/rusiyofe/1/edit
Kevin
I solved it by making an alert (budget) as simple as that.
Muchas gracias