fnCreateSelect select filter and colvis together

fnCreateSelect select filter and colvis together

petervanreespetervanrees Posts: 2Questions: 0Answers: 0
edited June 2011 in General
Hi,
I'm using a combination of ColVis and select dropdown filters with datables 1.7. I would like to have select dropdowns on columns, that were hidden on initialization but activated and shown later on. I'd say that using live() would do the trick but I've not yet succeeded in getting it right yet.

I now use this to create the select filters

[code] /* Add a select menu for each TH element in the table footer */
$("tfoot th.filtered").each( function ( i ) {
this.innerHTML = fnCreateSelect( oTable.fnGetColumnData(i) );
$('select', this).change( function () {
oTable.fnFilter( $(this).val(), i );
} );
} );
[/code]

Thanks and cheers, peter
This discussion has been closed.