bSelectedOnly not behaving?
bSelectedOnly not behaving?
nickyoon
Posts: 1Questions: 0Answers: 0
Hi Allan,
Referring to the discussion you had on http://datatables.net/forums/comments.php?DiscussionID=3755, i cant get my bSelectedOnly working. Am I doing it wrong? I've read the button options and its said if no rows were selected, the value is false which should output all the rows to be exported?
Here is my code,
[code]
var oTable;
oTable = $('#example').dataTable( {
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"sDom": 'TC<"clear">lfrtip',
"oTableTools": {
"sRowSelect": "multi",
"sSwfPath": "/js/media/swf/copy_cvs_xls_pdf.swf",
"aButtons": [
"copy", "xls",
{
"sExtends": "pdf",
"sPdfOrientation": "landscape",
"sPdfMessage": "Member List",
"mColumns": "visible",
"bSelectedOnly": true
}
]
}
} );
oTable.fnSetColumnVis( 0, false );
oTable.fnSetColumnVis( 6, false );
oTable.fnSetColumnVis( 8, false );
[/code]
Please point me at the right direction, Thank you very much!
Referring to the discussion you had on http://datatables.net/forums/comments.php?DiscussionID=3755, i cant get my bSelectedOnly working. Am I doing it wrong? I've read the button options and its said if no rows were selected, the value is false which should output all the rows to be exported?
Here is my code,
[code]
var oTable;
oTable = $('#example').dataTable( {
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"sDom": 'TC<"clear">lfrtip',
"oTableTools": {
"sRowSelect": "multi",
"sSwfPath": "/js/media/swf/copy_cvs_xls_pdf.swf",
"aButtons": [
"copy", "xls",
{
"sExtends": "pdf",
"sPdfOrientation": "landscape",
"sPdfMessage": "Member List",
"mColumns": "visible",
"bSelectedOnly": true
}
]
}
} );
oTable.fnSetColumnVis( 0, false );
oTable.fnSetColumnVis( 6, false );
oTable.fnSetColumnVis( 8, false );
[/code]
Please point me at the right direction, Thank you very much!
This discussion has been closed.
Replies
:-S
Thanks,
Allan
bSelectedOnly is behaving correctly for me in that it will only take the rows that are selected, however if no rows are selected, instead of automatically using them all as it says in the documentation, it simply doesn't select any rows at all. A fix for that would be greatly appreciated!
Thanks,
Allan
Since the update made to TableTools only work for 1.8.2 release...
Thanks
Gust