datatables editcolumn if else
"createdRow": function (row, data) {
$('td', row).eq('COLUMN_INDEX_HERE').html($('<label>').attr({
class: (data.status == 0) ? 'label label-warning' : ( (data.status == 1) ? 'label label-success': 'label label-danger' )
}).html((data.status == 0) ? 'Pending' : ( (data.status == 1) ? 'Approved': 'Canceled' )));
}