Using ColVis option in tabs

Using ColVis option in tabs

KyvuKyvu Posts: 11Questions: 0Answers: 0
edited May 2012 in Plug-ins
Hello,

I have an issue with a Colvis option when using tables in tabs. Please let me explain...

My sample HTML code:

[code]






T1
F1
S1



//My table 1







//My table 2







//My table 3










[/code]

My JQuery code:

[code]

$(function(){

$("table[id*=mydatatablegroupea]").dataTable({
"bSort": true,
"aaSorting": [],
"bPaginate": false,
"bAutoWidth": false,
"sDom": 'C<"clear">lfrtip',
"oColVis": {"buttonText": "MyNewColVisLabel"}
});

$("#tabs").tabs();

});

[/code]

All works fine with the tabs displaying except for one thing:

"oColVis": {"buttonText": "MyNewColVisLabel"}

The modified button text is only applied on the first table (placed on the first tab). All other tables (displayed on the other tabs) keep the default label ("Show / hide columns").

Could you please help?

Thanks.

Regards.
This discussion has been closed.