export to csv file
export to csv file
srimanta12
Posts: 12Questions: 0Answers: 0
I am a new guy in datatable plugin. I have successfully implemented one datatable plugin in my code. Now my issue is by making use this how can I export a csv file though I use the code for that :
[code] $('#example').dataTable( {
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "datatabledb.php",
"bJQueryUI": true,
"sPaginationType": "full_numbers",
//"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"aButtons": [
{
"sExtends": "copy",
"sButtonText": "Copy to clipboard"
},
{
"sExtends": "csv",
"sButtonText": "Save to CSV"
},
{
"sExtends": "xls",
"sButtonText": "Save for Excel"
}
]
}
} );[/code]
But "Save to CSV" button is not showing. Please tell me how to fix the issue.
[code] $('#example').dataTable( {
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "datatabledb.php",
"bJQueryUI": true,
"sPaginationType": "full_numbers",
//"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"aButtons": [
{
"sExtends": "copy",
"sButtonText": "Copy to clipboard"
},
{
"sExtends": "csv",
"sButtonText": "Save to CSV"
},
{
"sExtends": "xls",
"sButtonText": "Save for Excel"
}
]
}
} );[/code]
But "Save to CSV" button is not showing. Please tell me how to fix the issue.
This discussion has been closed.
Replies
Allan
Please help me.
Allan