Jquery Datatable fnRender is not working

Earlier I was using jquery datatable and its fnRender function working properly, but when I try to use latest jquery datatable plugin it doesn’t fire fnRender function for me. I was totally upset it was working before not now.

I did some google research and read jquery datatable documentation of latest release then found the solution, the fnRender function is depreciated from the jquery datatable in latest release. Now fnRender is replaced with the mRender. When I replace the fnRender with the mRender it works like charm.

here the example how to use mRender

 "aoColumns": [
    "sClass": "center",
    "mRender":function (data, type, oObj) {
        return oObj[0];

Hope it help you…..happy coding…

Posted by | View Post | View Group