I have DataTable loaded dynamically, all columns are coming from Database in JSON format which aoColumns required.
I can render any column like this:
"aoColumns": [
{
"sName": "I_CPN",
"fnRender": function (oObj)
{
return a button
}
}]
Where sName
is my Column name, this is static, I can get above content for aoColumns
dynamically from C# code in JSON format. My problem is I am not able to put fnRender
in JSON object.
How can I get fnRender
so that I can render my Column as button.