OK, I have a datatable that is loaded initially with all the data it needs.
However, I want the users to search for data and not scroll.
Is there any way to "hide" the data until the user uses the search function?
That's searching, rather than filtering (i.e. building up from an empty set, rather than reducing down from the full set). DataTables implements filtering. If you wanted to do a search you'd need to remove the data from the DataTable and then only add it when you are ready to do the filtering. There is no built in 'search' option in DataTables (just 'filtering').
Replies
Allan
[code]
"fnDrawCallback": function( oSettings ) {
if($('#vehicles_table_filter input').val() != ''){
$('#vehicles_table tr').css("display","");
}
else {
$('#vehicles_table tr').css("display","none");
}
}
[/code]
Thanks!
Dave