DataTables complex header example (rowspan and colspan)

Preamble

Complex headers (using colspan / rowspan) can be used to group columns of similar information in DataTables, creating a very powerful visual effect. In addition to the basic behaviour, DataTables can also take colspan and rowspans into account when working with hidden columns. The colspan and rowspan attributes for each cell are automatically calculated and rendered on the page for you. This also allows the ColVis extra for DataTables to work great with hidden columns.

Live example

Rendering engineBrowserDetails
Engine versionCSS grade
Rendering engineBrowserEngine versionCSS grade
Details
Gecko Firefox 1.0 1.7 A
Gecko Firefox 1.5 1.8 A
Gecko Firefox 2.0 1.8 A
Gecko Firefox 3.0 1.9 A
Gecko Camino 1.0 1.8 A
Gecko Camino 1.5 1.8 A
Gecko Netscape 7.2 1.7 A
Gecko Netscape Browser 8 1.7 A
Gecko Netscape Navigator 9 1.8 A
Gecko Mozilla 1.0 1 A
Showing 1 to 10 of 57 entries

Initialisation code

1
2
3
4
5
6
7
$(document).ready(function() {
    $('#example').dataTable( {
        "aoColumnDefs": [
            { "bVisible": false, "aTargets": [2] }
        ]
    } );
} );

Other examples

le v�lo � tampa (floride) douanes acier courb� sur ont d�voil� leur dernier projet, 1982 honda cb750 d�capotable.dirig� par mike mundy,ADIDAS EQUIPMENT CUSHION 93 la boutique & # 8217;Adidas Climacool Boat Lace s plus r�cente adaptation caract�ristiques l'�quipage & # 8217;ADIDAS TUBULAR SHADOW KNIT s signature minimaliste propre conception avec la peinture gris et noir sur l'ext�rieur.ajouts comprennent un �cran prot�g� phare, red pod filtres et mono - choc springs parmi beaucoup d'autres am�liorations.Adidas Yeezy Boost 350 V2peut - �tre la plus frappante dans le d�tail le tuyau d'�chappement est saillante sous le si�ge.ils a �t� sur un rouleau cette ann�e avec ses nombreuses collaborations et les rejets, et maintenant,ADIDAS ORIGINALS NMD PRIMEKNIT les japonais basket brand,ADIDAS SPRINGBLADE SCHUHE c'est prendre un retour aux sources avec une nouvelle paire de gel lyte vs.ADIDAS TUBULAR WOMENv�tue d'un haut blanc pur nubuck le & # 8220; winter & # 8221;ADIDAS SPRINGBLADE WOMEN SCHUHE pack publication offre une nouvelle nubuck blanc sur la simplicit� comme si�ge haut de la corde d'une semelle intercalaire,ADIDAS CAMPUS tandis que les lacets cravate le chercher ensemble.comme toujours, la nouvelle - # 8220; hiver pack & # 8221; gel lyte v offre confort incomparable avec son gel technologie situ� dans le rembourrage intercalaire.l'asic gel lyte v & # 8220,women's superstar adidas white & # 8221; est maintenant disponible chez les d�taillants comme quelques environ 145 $us.
NIKE TENNIS CLASSIC ULTRA LEATHER,Nike Zoom KD 9,NIKE KOBE 12,ADIDAS NMD R1,Adidas Stan Smith,ADIDAS YEEZY 750 BOOST