DataTables GetData or GetHiddenNodes for filtered data
DataTables GetData or GetHiddenNodes for filtered data
joshgateway
Posts: 9Questions: 0Answers: 0
Hi Guys,
I've got a couple datatables in a form allowing people to select a user from a list and add them to another list. The tables are set up to scroll. The problem is is the check the input checkbox and then use the filter to search for something but don't clear it out, whatever they may have previously checked will not be submitted with the form. I've tried using the following:
[code]
var aTable_acc = $('.dataTable_accordion1').dataTable({
"bSortCellsTop": true,
"aaSorting": [[ 0, "asc" ]],
"sScrollY" : "311px",
"bPaginate": false,
"bScrollCollapse" : true,
// "bStateSave": true,
"oLanguage": {
"sInfo": "_TOTAL_ total records"
}
});
$(aTable_acc.fnGetData()).find('input:checked').appendTo(this).hide();
[/code]
and...
[code]
$(aTable_acc.fnGetHiddenNodes()).find('input:checked').appendTo(this).hide();
[/code]
but to no avail.
Any ideas on what I can use to grab the data?
I've got a couple datatables in a form allowing people to select a user from a list and add them to another list. The tables are set up to scroll. The problem is is the check the input checkbox and then use the filter to search for something but don't clear it out, whatever they may have previously checked will not be submitted with the form. I've tried using the following:
[code]
var aTable_acc = $('.dataTable_accordion1').dataTable({
"bSortCellsTop": true,
"aaSorting": [[ 0, "asc" ]],
"sScrollY" : "311px",
"bPaginate": false,
"bScrollCollapse" : true,
// "bStateSave": true,
"oLanguage": {
"sInfo": "_TOTAL_ total records"
}
});
$(aTable_acc.fnGetData()).find('input:checked').appendTo(this).hide();
[/code]
and...
[code]
$(aTable_acc.fnGetHiddenNodes()).find('input:checked').appendTo(this).hide();
[/code]
but to no avail.
Any ideas on what I can use to grab the data?
This discussion has been closed.
Replies
[code]
aTable.$('tr').find( 'input.checked' );
[/code]
Allan