columnFilter plugin not working well with TableTools->select_all.

columnFilter plugin not working well with TableTools->select_all.

zkinionzkinion Posts: 3Questions: 0Answers: 0
edited February 2013 in TableTools
Hello,

I have the following code to create my table:
[code] dataTableVar = $('#dataGridTable').dataTable( {
"sDom" : 'T<"clear">lfrtip',
"sScrollY": "275px",
"bScrollCollapse": true,
"bPaginate": true,
"sPaginationType" : "full_numbers",
"bJQueryUI": true,
"bAutoWidth": false,
"aLengthMenu" : [[5, 10, 25, 50, -1], [5, 10, 25, 50, "ALL"]],
"iDisplayLength" : 50,
"bFilter": true,
"aoColumnDefs": [
{ "sWidth": "10%", "aTargets": [ -1 ] }],
"oTableTools" : {
"sRowSelect" : "multi",
"aButtons" : ["select_all", "select_none"]
}
} );


dataTableVar.columnFilter();[/code]

This works fine.

However, when I filter by a column, lets say state, and then select_all, it'll select all the fields with that state. However, when I save this information, columnFilter has simply hid the fields with other states, which also get selected, which is not my intent because I am hiding them using columnFilter plugin. Is there a way to make select all, only able to select "visible" elements, e.g. ones that columnFilter plugin does not hide? Or is there a way to make columnFilter do more than just hide these rows.

I know that when I use search to select rows, and hit select_all, it works fine and only selects all the rows that are contained in the search field.

Please advise,


-Zak Kinion

Replies

This discussion has been closed.