Check and Update column empty
Check and Update column empty

Hi guys, I would like to check a column where when it is empty it must display "RITSIC" (without sending "RITSIC" to the database) instead when it is populated by the data taken from the database it must remain unchanged, I tried with rowCallback and with the function render directly in the columns but I couldn't, can you help me?
rowCallback: function ( row, data ) {
if ( data.start == ' ') {
return "RITSIC";
}
},
AND
{
"data": "start",
render: function ( data, type, row ) {
if ( data.start == " ") {
return 'RITSIC';
}
},
}
This discussion has been closed.
Replies
Oh man, work but i need to add, cause turn me error tn4
Sure, I updated my reply accordingly. The "else" is omittable.