1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
4 <meta http-equiv="content-type" content="text/html; charset=utf-8">
5 <link rel="shortcut icon" type="image/ico" href="http://www.sprymedia.co.uk/media/images/favicon.ico">
7 <title>FixedColumns example</title>
8 <style type="text/css" title="currentStyle">
9 @import "../../media/css/demo_page.css";
10 @import "../../media/css/demo_table.css";
12 <script type="text/javascript" charset="utf-8" src="../../media/js/jquery.js"></script>
13 <script type="text/javascript" charset="utf-8" src="../../media/js/jquery.dataTables.js"></script>
14 <script type="text/javascript" charset="utf-8" src="media/js/FixedColumns.js"></script>
15 <script type="text/javascript" charset="utf-8">
16 $(document).ready( function () {
17 var oTable = $('#example').dataTable( {
21 "sScrollXInner": "150%",
22 "bScrollCollapse": true
24 new FixedColumns( oTable );
28 <body id="dt_example">
30 <div class="full_width big">
31 FixedColumns example - rowspan in the header
35 <p>If you are using multiple rows in the table header, it can be useful to have a rowspanning cell on the column(s) you have fixed in place - equally at other times it can be useful to not and make use of the two or more cells per column. FixedColumns builds on the complex header support in DataTables to make this trivial to use in FixedColumns. Just initialise your FixedColumns instance as you normally would!</p>
39 <table cellpadding="0" cellspacing="0" border="0" class="display" id="example">
42 <th rowspan="2">Rendering engine</th>
45 <th>Engine version</th>
49 <th>Name and version</th>
50 <th>Operating systems</th>
51 <th>Rendering engine</th>
52 <th>Support level</th>
61 <td class="center">4</td>
62 <td class="center">X</td>
69 <td class="center">5</td>
70 <td class="center">C</td>
77 <td class="center">5.5</td>
78 <td class="center">A</td>
85 <td class="center">6</td>
86 <td class="center">A</td>
90 <td>Internet Explorer 7</td>
92 <td class="center">7</td>
93 <td class="center">A</td>
97 <td>AOL browser (AOL desktop)</td>
99 <td class="center">6</td>
100 <td class="center">A</td>
105 <td>Win 98+ / OSX.2+</td>
106 <td class="center">1.7</td>
107 <td class="center">A</td>
112 <td>Win 98+ / OSX.2+</td>
113 <td class="center">1.8</td>
114 <td class="center">A</td>
119 <td>Win 98+ / OSX.2+</td>
120 <td class="center">1.8</td>
121 <td class="center">A</td>
126 <td>Win 2k+ / OSX.3+</td>
127 <td class="center">1.9</td>
128 <td class="center">A</td>
134 <td class="center">1.8</td>
135 <td class="center">A</td>
141 <td class="center">1.8</td>
142 <td class="center">A</td>
146 <td>Netscape 7.2</td>
147 <td>Win 95+ / Mac OS 8.6-9.2</td>
148 <td class="center">1.7</td>
149 <td class="center">A</td>
153 <td>Netscape Browser 8</td>
155 <td class="center">1.7</td>
156 <td class="center">A</td>
160 <td>Netscape Navigator 9</td>
161 <td>Win 98+ / OSX.2+</td>
162 <td class="center">1.8</td>
163 <td class="center">A</td>
168 <td>Win 95+ / OSX.1+</td>
169 <td class="center">1</td>
170 <td class="center">A</td>
175 <td>Win 95+ / OSX.1+</td>
176 <td class="center">1.1</td>
177 <td class="center">A</td>
182 <td>Win 95+ / OSX.1+</td>
183 <td class="center">1.2</td>
184 <td class="center">A</td>
189 <td>Win 95+ / OSX.1+</td>
190 <td class="center">1.3</td>
191 <td class="center">A</td>
196 <td>Win 95+ / OSX.1+</td>
197 <td class="center">1.4</td>
198 <td class="center">A</td>
203 <td>Win 95+ / OSX.1+</td>
204 <td class="center">1.5</td>
205 <td class="center">A</td>
210 <td>Win 95+ / OSX.1+</td>
211 <td class="center">1.6</td>
212 <td class="center">A</td>
217 <td>Win 98+ / OSX.1+</td>
218 <td class="center">1.7</td>
219 <td class="center">A</td>
224 <td>Win 98+ / OSX.1+</td>
225 <td class="center">1.8</td>
226 <td class="center">A</td>
230 <td>Seamonkey 1.1</td>
231 <td>Win 98+ / OSX.2+</td>
232 <td class="center">1.8</td>
233 <td class="center">A</td>
237 <td>Epiphany 2.20</td>
239 <td class="center">1.8</td>
240 <td class="center">A</td>
246 <td class="center">125.5</td>
247 <td class="center">A</td>
253 <td class="center">312.8</td>
254 <td class="center">A</td>
260 <td class="center">419.3</td>
261 <td class="center">A</td>
267 <td class="center">522.1</td>
268 <td class="center">A</td>
274 <td class="center">420</td>
275 <td class="center">A</td>
279 <td>iPod Touch / iPhone</td>
281 <td class="center">420.1</td>
282 <td class="center">A</td>
288 <td class="center">413</td>
289 <td class="center">A</td>
294 <td>Win 95+ / OSX.1+</td>
295 <td class="center">-</td>
296 <td class="center">A</td>
301 <td>Win 95+ / OSX.2+</td>
302 <td class="center">-</td>
303 <td class="center">A</td>
308 <td>Win 95+ / OSX.2+</td>
309 <td class="center">-</td>
310 <td class="center">A</td>
315 <td>Win 95+ / OSX.2+</td>
316 <td class="center">-</td>
317 <td class="center">A</td>
322 <td>Win 95+ / OSX.3+</td>
323 <td class="center">-</td>
324 <td class="center">A</td>
329 <td>Win 88+ / OSX.3+</td>
330 <td class="center">-</td>
331 <td class="center">A</td>
336 <td>Win 88+ / OSX.3+</td>
337 <td class="center">-</td>
338 <td class="center">A</td>
342 <td>Opera for Wii</td>
344 <td class="center">-</td>
345 <td class="center">A</td>
351 <td class="center">-</td>
352 <td class="center">A</td>
356 <td>Nintendo DS browser</td>
358 <td class="center">8.5</td>
359 <td class="center">C/A</td>
363 <td>Konqureror 3.1</td>
365 <td class="center">3.1</td>
366 <td class="center">C</td>
370 <td>Konqureror 3.3</td>
372 <td class="center">3.3</td>
373 <td class="center">A</td>
377 <td>Konqureror 3.5</td>
379 <td class="center">3.5</td>
380 <td class="center">A</td>
384 <td>Internet Explorer 4.5</td>
386 <td class="center">-</td>
387 <td class="center">X</td>
391 <td>Internet Explorer 5.1</td>
392 <td>Mac OS 7.6-9</td>
393 <td class="center">1</td>
394 <td class="center">C</td>
398 <td>Internet Explorer 5.2</td>
400 <td class="center">1</td>
401 <td class="center">C</td>
405 <td>NetFront 3.1</td>
406 <td>Embedded devices</td>
407 <td class="center">-</td>
408 <td class="center">C</td>
412 <td>NetFront 3.4</td>
413 <td>Embedded devices</td>
414 <td class="center">-</td>
415 <td class="center">A</td>
420 <td>Embedded devices</td>
421 <td class="center">-</td>
422 <td class="center">X</td>
428 <td class="center">-</td>
429 <td class="center">X</td>
435 <td class="center">-</td>
436 <td class="center">X</td>
441 <td>Windows Mobile 6</td>
442 <td class="center">-</td>
443 <td class="center">C</td>
449 <td class="center">-</td>
450 <td class="center">C</td>
453 <td>Other browsers</td>
456 <td class="center">-</td>
457 <td class="center">U</td>
462 <div class="spacer"></div>
465 <h1>Initialisation code</h1>
466 <pre>$(document).ready( function () {
467 var oTable = $('#example').dataTable( {
471 "sScrollXInner": "150%",
472 "bScrollCollapse": true
474 new FixedColumns( oTable );
478 <h1>Documentation</h1>
480 <li><a href="http://datatables.net/extras/fixedcolumns">Usage</a></li>
481 <li><a href="http://datatables.net/docs/FixedColumns">API / parameters</a></li>
484 <h1>Basic examples</h1>
486 <li><a href="index.html">Basic demo of FixedColumns with zero initialisation</a></li>
487 <li><a href="left_right_columns.html">Fix the left and right columns in place</a></li>
488 <li><a href="index_column.html">Index column attached to side of the table</a></li>
489 <li><a href="x_y_scrolling.html">Index column, but with Y scrolling and no pagination</a></li>
490 <li><a href="two_columns.html">Two columns fixed in place</a></li>
491 <li><a href="right_column.html">Fix the right column in place</a></li>
492 <li><a href="css_size.html">Speeding up row height matching with CSS</a></li>
493 <li><a href="themed.html">jQuery UI themed table with FixedColumns</a></li>
496 <h1>Advanced examples</h1>
498 <li><a href="rowspan.html">Using ROWSPAN with FixedColumns</a></li>
499 <li><a href="server-side-processing.html">Server-side processing with FixedColumns</a></li>
500 <li><a href="col_filter.html">Individual column filtering</a></li>
501 <li><a href="scale_fixed.html">Setting the fixed column width and resizing the table</a></li>
502 <li><a href="scale_relative.html">Setting the fixed column width with relative sizing</a></li>
503 <li><a href="row_grouping_height.html">Row grouping by grouping like rows in the fixed column</a></li>
504 <li><a href="row_grouping.html">Row grouping by inserting a grouping row</a></li>
508 <div id="footer" style="text-align:center;">
509 <span style="font-size:10px;">
510 FixedColumns and DataTables © Allan Jardine 2011.<br>