fnCellRender help

fnCellRender help

warmnet2001warmnet2001 Posts: 6Questions: 0Answers: 0

I'm trying datatables Editor 1.5, with 1.01 Buttons and Select 1.0.1. I need to modify the fields when exporting to .txt, but I can not do it fnCellRender. I'm not using TableTools because it was replaced by Buttons and Select. This is my code:

buttons: [
{ extend: "create", editor: editor },
{ extend: "edit", editor: editor },
{ extend: "remove", editor: editor },
{ extend: "colvis", collectionLayout: "fixed two-column"},
{ extend: 'csv', fieldSeparator: "", extension: '.txt', header: false, text: 'Exportar',
fnCellRender: function ( sValue, iColumn) {
if ( iColumn === 1 ) {
return sValue +" TableTools";
}
return sValue;
},
exportOptions: {
columns: [0,1,2 ]
}}
]

I exported good, but does not change my spine.
Appreciate give me a help, I can not fix it.
Excuse my English, I use a translator.
Best regards

This discussion has been closed.