0

I am using JQuery-datatables for my model Contacts and apply for this TableTools. I have provided several buttons for datatable, but it saves only one page instead of saving all my table. In Examples I have studied everything seems OK with saving all the table.

Here is my contacts.js.coffee:

jQuery ->
$.extend $.fn.dataTableExt.oStdClasses,
  sSortAsc: "header headerSortDown"
  sSortDesc: "header headerSortUp"
  sSortable: "header"

$('#contacts').dataTable
  sPaginationType: "bootstrap"
  bJQueryUI: true
  bProcessing: true
  bServerSide: true
  sAjaxSource: $('#contacts').data('source')
  sDom: "<'row-fluid'<'span6'T><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>"
    oTableTools:
      sSwfPath: "/swf/copy_csv_xls_pdf.swf"
      aButtons: [
        sExtends: "copy"
        sButtonText: "Copy to clipboard",

        sExtends: "csv"
        sButtonText: "Save to CSV",

        sExtends: "xls"
        sButtonText: "Save for Excel"
        ]  

What am I doing wrong? Thanks in advance!

4

0 回答 0