One external form for multiple datables

One external form for multiple datables

mf_a2ifmf_a2if Posts: 32Questions: 0Answers: 0
edited January 2013 in Plug-ins
Hi everybody.

I use Column Filter in an external form (like this example : http://jquery-datatables-column-filter.googlecode.com/svn/trunk/external.html). I have multiple tables on the same page, with the same name in columns, but with a different row grouping (group by name, group by day, etc).

My external form filter work on the first table only for the moment, but i want filtering all tables with just one filter.
How can I do it ?

Code js :
[code]
$(document).ready(function (){
var oTableDetail = $('#tabDetail').dataTable();
var oTableStatsUser = $('#tabStatsUser').dataTable();

$("#tabDetail").dataTable().columnFilter({aoColumns:[
{ type:"input", sSelector: "#usagerFilter" },
{ type: "date-range", sSelector: "#dateFilter" },
{ type:"select", sSelector: "#heureFilter" },
{ type:"select", sSelector: "#decheterieFilter" }
]}
[/code]

Code Html :
[code]


Filtres sur tableau



Usager



Date d'entrée



Heure d'entrée



Déchèterie










Usager
Date d'entrée
Heure d'entrée
Déchèterie
Commune
Statut



ALL MY DATA

















Usager
Date d'entrée
Heure d'entrée
Déchèterie
Commune
Statut



ALL MY DATA















[/code]

Someone can help me please ?
This discussion has been closed.