fnCellRender option not working
fnCellRender option not working
jsidhu
Posts: 7Questions: 0Answers: 0
I am using "sAjaxSource" to render the data from the server. I have few columns. One of the column also renders two links which are dropdown toggle.
ex:
"aoColumns": [
{
'sName':'ID' ,
'mDataProp': 'SYS_ID',
'sTitle': 'C Sys ID',
'bSortable': true,
'aDataSort': true,
'bVisible': true,
'bSortable': false,
'sWidth': "60px",
'sType': 'html',
'mRender': function(data,type,full){
return ""+data +"ViewEdit";
//""+data+"";
},
When I use the TableTools as:
sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sSwfPath": "/assets/plugins/tables/dataTables/swf/copy_csv_xls_pdf.swf",
"aButtons": [
{
"sExtends": "collection",
"sButtonText": 'Save Data on screen ',
"aButtons": [ "csv", "xls", "pdf" ],
}
the exported csv/pdf file prints the above column as "value+ViewEdit" for ex:"data123ViewEdit" for that particular column.
How can I get rid off "ViewEdit" in that column in csv/pdf.
I tried using "fnCellRender" but didnt helped.
Can anyone plz help me with that?
ex:
"aoColumns": [
{
'sName':'ID' ,
'mDataProp': 'SYS_ID',
'sTitle': 'C Sys ID',
'bSortable': true,
'aDataSort': true,
'bVisible': true,
'bSortable': false,
'sWidth': "60px",
'sType': 'html',
'mRender': function(data,type,full){
return ""+data +"ViewEdit";
//""+data+"";
},
When I use the TableTools as:
sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sSwfPath": "/assets/plugins/tables/dataTables/swf/copy_csv_xls_pdf.swf",
"aButtons": [
{
"sExtends": "collection",
"sButtonText": 'Save Data on screen ',
"aButtons": [ "csv", "xls", "pdf" ],
}
the exported csv/pdf file prints the above column as "value+ViewEdit" for ex:"data123ViewEdit" for that particular column.
How can I get rid off "ViewEdit" in that column in csv/pdf.
I tried using "fnCellRender" but didnt helped.
Can anyone plz help me with that?
This discussion has been closed.
Replies
yes it is coz of the mRender function. So my question is how can I hide that :viewEdit" from mRender function in the exported csv/excel/pdf?
Please help!!
Allan
please help!! its urgent
thx!!