Cannot display CSV or other images
Cannot display CSV or other images
visionala9
Posts: 10Questions: 0Answers: 0
Hi,
I wanted to add Export to CSV functionality in my already existing datatable but I am not able to do so.
Here is my code for datatable
$('.sortable').each(function(i)
{
// DataTable config
var table = $(this),
oTable = table.dataTable({
/*
* We set specific options for each columns here. Some columns contain raw data to enable correct sorting, so we convert it for display
* @url http://www.datatables.net/usage/columns
*/
aoColumns: [
{ bSortable: false }, // No sorting for this columns, as it only contains checkboxes
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
// No sorting for actions column
],
/*
* Set DOM structure for table controls
* @url http://www.datatables.net/examples/basic_init/dom.html
*/
sDom: 'T<"block-controls"<"controls-buttons"p>>rti<"block-footer clearfix"lf>',
"bDestroy": true
/*
* Callback to apply template setup
*/
});
What changes do I have to make so that CSV icon displays in top of table?
I wanted to add Export to CSV functionality in my already existing datatable but I am not able to do so.
Here is my code for datatable
$('.sortable').each(function(i)
{
// DataTable config
var table = $(this),
oTable = table.dataTable({
/*
* We set specific options for each columns here. Some columns contain raw data to enable correct sorting, so we convert it for display
* @url http://www.datatables.net/usage/columns
*/
aoColumns: [
{ bSortable: false }, // No sorting for this columns, as it only contains checkboxes
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null
// No sorting for actions column
],
/*
* Set DOM structure for table controls
* @url http://www.datatables.net/examples/basic_init/dom.html
*/
sDom: 'T<"block-controls"<"controls-buttons"p>>rti<"block-footer clearfix"lf>',
"bDestroy": true
/*
* Callback to apply template setup
*/
});
What changes do I have to make so that CSV icon displays in top of table?
This discussion has been closed.
Replies
see this page for more information: http://datatables.net/extras/tabletools/
I am using this plugin but its not working.Any specific reasons?