Filter Column , head

Filter Column , head

spyboyzspyboyz Posts: 11Questions: 0Answers: 0
edited October 2011 in Plug-ins
Hello,

I tried to set up filter in the header of the table but it didnt works. Is there any possibilities to get the filter to the top of the column instead of bottom?


[code]



Num REA
Désignation Item
Sévérité
Date Création
Statut




><?php echo $aDonnes->getDesignationItem(); ?>
><?php echo $aDonnes->getPriorite(); ?>
><?php echo $date["jour"]."/".$date["mois"]."/".$date["annee"]?>
><?php echo $aDonnes->getStatut();?>




Num REA
Sujet
Sévérité
Date Création
Etat



[/code]

Replies

  • allanallan Posts: 63,685Questions: 1Answers: 10,498 Site admin
    Are you using the Column Filter plug-in, or is this based off my column filter example? I don't see how you are doing the column filtering at the moment, so the answer isn't quite clear as it will be different for each case :-)

    Allan
  • spyboyzspyboyz Posts: 11Questions: 0Answers: 0
    edited October 2011
    yes i'm using the pluging
    here is my Js code for the table :

    [code]

    $("#mytableau").dataTable().columnFilter({
    aoColumns: [
    { type: "text",bRegex:true },
    { type: "text",bRegex:true },
    { type: "text",bRegex:true },
    { type: "text",bRegex:true },
    { type: "text",bRegex:true }
    ]
    });
    [/code]
  • allanallan Posts: 63,685Questions: 1Answers: 10,498 Site admin
    http://jquery-datatables-column-filter.googlecode.com/svn/trunk/dateRange.html :-) Use "sPlaceHolder: "head:before"" (or "head:after") and move your "spare" row from the footer to the header.

    Allan
  • spyboyzspyboyz Posts: 11Questions: 0Answers: 0
    Awesome , thank you : )
This discussion has been closed.