Filters + tabletools not working
Filters + tabletools not working
I have :
var oTable1 = $('#example1').dataTable(
{"oLanguage": {"sSearch": "Search all columns:"}});
and
$("#example1 thead tr").clone().prependTo($("#example1 thead")).find("th").each(function(i) {this.innerHTML = fnCreateSelect(oTable1.fnGetColumnData(i));
$('select', this).change(function() {oTable1.fnFilter($(this).val(), i); }); } );
The above pice of code is for adding filters...
I need to add tabletools on top of that...But as soon as i add tabletools the filters disapear
var oTable1 = $('#example1').dataTable(
{"oLanguage": {"sSearch": "Search all columns:"}});
and
$("#example1 thead tr").clone().prependTo($("#example1 thead")).find("th").each(function(i) {this.innerHTML = fnCreateSelect(oTable1.fnGetColumnData(i));
$('select', this).change(function() {oTable1.fnFilter($(this).val(), i); }); } );
The above pice of code is for adding filters...
I need to add tabletools on top of that...But as soon as i add tabletools the filters disapear
This discussion has been closed.
Replies
Allan
Allan
$('#example').dataTable( {
06. "sDom": 'T<"clear">lfrtip',
07. "oTableTools": {
08. "sSwfPath": "/swf/copy_cvs_xls_pdf.swf" ====> i don't have this file
09. }
10. } );
Allan