Cannot display CSV or other images

Cannot display CSV or other images

visionala9visionala9 Posts: 10Questions: 0Answers: 0
edited September 2011 in TableTools
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?

Replies

  • jcrawfordjcrawford Posts: 172Questions: 0Answers: 0
    I would suggest you use the TableTools plug-in for this, I have it in place and it works great.

    see this page for more information: http://datatables.net/extras/tabletools/
  • visionala9visionala9 Posts: 10Questions: 0Answers: 0
    Hi,
    I am using this plugin but its not working.Any specific reasons?
  • jcrawfordjcrawford Posts: 172Questions: 0Answers: 0
    are you using the exact directory structure that the plugin has? I mean did you put the TableTools SWF file somewhere the plugin can't find it? Could you provide me with a URL so I could see the table and be of further assistance?
  • visionala9visionala9 Posts: 10Questions: 0Answers: 0
    Thanks. I changed the directory structure and its working now.
This discussion has been closed.