bSelectedOnly not working
bSelectedOnly not working
conrado
Posts: 2Questions: 0Answers: 0
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
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
This discussion has been closed.
Replies
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
It works now.
Thank you,
Conrad