bSelectedOnly not working

bSelectedOnly not working

conradoconrado Posts: 2Questions: 0Answers: 0
edited June 2012 in TableTools
Hi folks,

I wanted to use the "bSelectedOnly" function on my export buttons, but it doesn't work! It always exports all my rows.
TableTools 2.1.2.dev

Here is my code:

[code]
$(document).ready( function () {
$('#example').dataTable( {
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sRowSelect": "multi",
"aButtons": [
{"sExtends": "xls",
"bSelectedOnly": true
},
{
"sExtends": "pdf",
"bSelectedOnly": true,
"sPdfOrientation": "landscape",
"sPdfSize": "A3"

},
"select_all", "select_none" ],
"sSwfPath": "../../static/media/swf/copy_csv_xls_pdf.swf"
}
} );
} );
[/code]

Any suggestions?

Thanks in advance,

Conrad

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Hi Conrad,

    I'm afraid that this appears to be a bug in TableTools. I've just committed a fix for the issue - could you try the very latest 2.1.2.dev ('nightly') from the downloads page: http://datatables.net/download and let me know how you get on? I'll be releasing 2.1.2 final soon.

    Thanks,
    Allan
  • conradoconrado Posts: 2Questions: 0Answers: 0
    Thanks for the lightning speed help!
    It works now.

    Thank you,
    Conrad
This discussion has been closed.