mRender, row value is not populated with the row dataset
mRender, row value is not populated with the row dataset
skmd
Posts: 2Questions: 0Answers: 0
Hi
I am using the mRender function to render the column. The function has 3 variables, data, type and row. data and type variables are populated as expected. But row value is not populated with the row dataset, instead it has the value [Object, Object].
Can anyone please let me know how can I populate the row variable with the row data?
[code]
"aoColumns": [
{ "sTitle": "Title1", "mData": "documentTitle", "mRender": function ( data, type, row ) {
return ''+row+'';
}},
{ "sTitle": "Title2", "mData":"title2" },
{ "sTitle": "Title3", "mData":"title3" },
{ "sTitle": "Title4", "mData": "title4" }
]
});
[/code]
Thanks in advance for your time
- Sunil
I am using the mRender function to render the column. The function has 3 variables, data, type and row. data and type variables are populated as expected. But row value is not populated with the row dataset, instead it has the value [Object, Object].
Can anyone please let me know how can I populate the row variable with the row data?
[code]
"aoColumns": [
{ "sTitle": "Title1", "mData": "documentTitle", "mRender": function ( data, type, row ) {
return ''+row+'';
}},
{ "sTitle": "Title2", "mData":"title2" },
{ "sTitle": "Title3", "mData":"title3" },
{ "sTitle": "Title4", "mData": "title4" }
]
});
[/code]
Thanks in advance for your time
- Sunil
This discussion has been closed.