Select All filtered
Select All filtered
picktrace
Posts: 12Questions: 5Answers: 0
Is there a simple way to have it when I click the select all button, to only select the results that are filtered? Or do I need to implement my own select all button?
This discussion has been closed.
Replies
arguments: boolean - Select only filtered rows (true). Optional - default false.
You will need to change
[code]
"sExtends": "select"
[/code]
to
[code]
"sExtends": "select_all"
[/code]
[code]
$('#table_NRubriques').dataTable({
...
"aButtons" : [
{
"sExtends": "select_all",
"sButtonText": "Select Filtered",
"fnClick": function (nButton, oConfig, oFlash) {
var oTT = TableTools.fnGetInstance('table_main');
oTT.fnSelectAll(true); //True = Select only filtered rows (true). Optional - default false.
}
},
...
[/code]
what did i do wrong here ? i can't find the issue :/