Deselect all (select_none) doesn't affect selected events with "sRowSelect": "multi"

Deselect all (select_none) doesn't affect selected events with "sRowSelect": "multi"

daeavelwyndaeavelwyn Posts: 2Questions: 0Answers: 0
edited March 2012 in Bug reports
Hi,
When I select some elements from my table, I can use copy with a good result, when I select no elements, copy button send every rows in clipboard, that's ok for me.
Now i've added two buttons, select_alll and select_none, and I wanted the select_none removes selection even if i've only a few rows selected, and refresh my table to display all rows as unselected.
Actually, when I select some rows, and click to the select_none button, rows stay selected in the table.
Does someone could help me please ? I'm a bit lost with this :-s

Here is the code I'm using with tabletools and datatables :
[code]
$('#MainTableResult').dataTable
({
"oLanguage": {
"sUrl": "lib/DataTables/dataTables.french.txt"
},
"sScrollX": "100%",
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"bPaginate": true,
"bFilter": true,

/* initialisation et paramétrage de TableTools */
"sDom": '<"H"lfipTr>t<"F"ip>',
"oTableTools":
{
"sSwfPath": "lib/DataTables/extras/TableTools/media/swf/copy_cvs_xls_pdf.swf",
"sRowSelect": "multi",
"aButtons": [
{
"sExtends": "copy",
"sButtonText": "Copier",
"bSelectedOnly": true
},
{
"sExtends": "xls",
"bSelectedOnly": true
},
{
"sExtends": "pdf",
"sPdfOrientation": "landscape",
"bSelectedOnly": true
},
{
"sExtends": "print",
"sButtonText": "Imprimer",
"bSelectedOnly": true //ne fonctionne pas ici.
},
"select_all",
"select_none"]
},
/* FIN D'initialisation et paramétrage de TableTools */

/* Add index column*/
"fnDrawCallback": function ( oSettings )
{
/* Need to redo the counters if filtered or sorted */
if ( oSettings.bSorted || oSettings.bFiltered )
{
for ( var i=0, iLen=oSettings.aiDisplay.length ; i

Replies

  • daeavelwyndaeavelwyn Posts: 2Questions: 0Answers: 0
    no body can help me ? I still encouter this problem :-s
  • allanallan Posts: 63,239Questions: 1Answers: 10,418 Site admin
    Can you post a link to a test case showing the problem please? I was using this just the other day and it should work :-)

    Allan
This discussion has been closed.