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 <title>Grouped Header Grid Example</title>
6 <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
7 <link rel="stylesheet" type="text/css" href="../shared/example.css" />
8 <script type="text/javascript" src="../../bootstrap.js"></script>
10 <style type="text/css">
11 /* style rows on mouseover */
12 .x-grid-row-over .x-grid-cell-inner {
16 <script type="text/javascript" src="group-header-grid.js"></script>
19 <h1>Grouped Header Example</h1>
20 <p>This example shows how to create a grid with column headers which are nested within category headers.</p>
21 <p>Category headers do not reference Model fields via a <code>dataIndex</code>, rather they contain
22 child header definitions (which may themselves either contain a <code>dataIndex</code> or more levels of headers).</p>
23 <p>The syntax is as simple as:<pre><code>{
24 header: 'Category Header',
26 header: 'First Sub Header',
27 dataIndex: 'subHeaderField1'
29 header: 'Second Sub Header',
30 dataIndex: 'subHeaderField2'
33 <p>Note that the js is not minified so it is readable. See <a href="group-header-grid.js">group-header-grid.js</a>.</p>
34 <div id="grid-example"></div>