Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82130

mRender, row value is not populated with the row dataset

$
0
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?

 "aoColumns": [
					      { "sTitle": "Title1",  "mData": "documentTitle", "mRender": function ( data, type, row ) {
                    return '<a href="#" onClick="alertMe(\'' + row + '\')">'+row+'</a>';
                }},
					      { "sTitle": "Title2", "mData":"title2" },
					      { "sTitle": "Title3", "mData":"title3" },
					      { "sTitle": "Title4", "mData": "title4" }
					    ]
						});

Thanks in advance for your time

- Sunil

Viewing all articles
Browse latest Browse all 82130

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>