Change row selection mode dynamically

Change row selection mode dynamically

Math3wMath3w Posts: 1Questions: 0Answers: 0
edited July 2012 in TableTools
I want to change the row selection mode between 'single' and 'multi' on the fly. I reinit the datatable with bDestroy but the selection mode keeps the inital setting when the table was made.

[code]
$("#ucucMainForm_gvValidValues").dataTable({ "bJQueryUI": true
, "bDestroy": true
, "sPaginationType": "full_numbers"
, "bAutoWidth": false
, "sScrollY": "400px"
, "bPaginate": false
, "bScrollCollapse": false
, "bInfo": false
, "sInfoEmpty": "No entries to show"
, "aoColumns": [
{ 'sName': 'BreakNumber', 'sType': 'numeric', 'bVisible': false, "sWidth": "50px" },
{ 'sName': 'PermittedValue', 'sType': 'string', 'bVisible': true, "sWidth": "120px" },
{ 'sName': 'Description', 'sType': 'string', 'bVisible': true },
]
, "sDom": '<"H"Tfr>t<"F"ip>'
, "oTableTools": {
"sRowSelect": sSelectMode ,
"sSwfPath": "media/swf/copy_cvs_xls_pdf.swf"
, "aButtons": []
, "fnRowSelected": function (node) { fnGetRowValue(node) }
, "fnRowDeselected": function (node) { fnUnselectRow(node) }
}
});
[/code]

Any ideas? Can I re-init tabletools only and not the datatable?
This discussion has been closed.