How to not render a cell using fnCellRender

How to not render a cell using fnCellRender

nojeronojero Posts: 1Questions: 1Answers: 0

Hi everyone,

I'm trying to export a table to both PDF and Excel using TableTools, and I would like to be able to not render certain cells and/or rows. I've tried returning false in the fnCellRender method like so:

"fnCellRender": function ( sValue, iColumn, nTr, iDataIndex ) {
if ( condition ) {
return false;
}
}

but I end up with all 'false' cells in the export. The same if I don't return any value, I get all 'undefined's in the export.

Is it possible to tell the renderer not to render certain cells/rows? If so, how?

Thanks!

This discussion has been closed.