How to validate if column is exist or not in mRender
How to validate if column is exist or not in mRender
mohaideen
Posts: 10Questions: 3Answers: 0
I am getting information from ajax.
In mRender method, i have showing the data in table
I have writing code in aoColumns like
{
"sTitle": "Branch Address",
"mData":"branchAddress",
"mRender":function(data, type, row){
if(typeof row.branchAddress != "undefined") {
return row.branchAddress;
}else{
return "Not Added";
}
}
}
But it is not working
This discussion has been closed.