how can get render content in datatable event
how can get render content in datatable event
GM_Lin
Posts: 4Questions: 3Answers: 0
~~my datatable config
......
{
"targets": 11,
"render":function (data, type, row, meta) {
Stat= (data=="Y" ? "YES" : "NO");//data is 'Y' or 'N'
return Stat;
}
.......
then i will in reload event get render text like this
var initDataTable=function() {
$("#datatable").dataTable().api().columns([6,7,8,9,10,11,12,13,14,15]).every(function (idx) {
if(idx==11){
//api only support column.data(),but i want to get render text.......
column.**text()**.unique().sort().each(function (d, j) {
.......
});
}
});
}
table.ajax.reload(initDataTable);~~
This discussion has been closed.