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>Stateful Array 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 <!-- page specific -->
11 <style type="text/css">
12 /* style rows on mouseover */
13 .x-grid-row-over .x-grid-cell-inner {
16 /* shared styles for the ActionColumn icons */
17 .x-action-col-cell img {
22 /* custom icon for the "buy" ActionColumn icon */
23 .x-action-col-cell img.buy-col {
24 background-image: url(../shared/icons/fam/accept.gif);
26 /* custom icon for the "alert" ActionColumn icon */
27 .x-action-col-cell img.alert-col {
28 background-image: url(../shared/icons/fam/error.gif);
31 <script type="text/javascript" src="array-grid.js"></script>
34 <h1>Stateful Array Grid Example</h1>
35 <p>This example shows how to create a grid from Array data.</p>
36 <p>The grid is stateful so you can move or hide columns, reload the page, and come
37 back to the grid in the same state you left it in.</p>
38 <p>Note that the js is not minified so it is readable. See <a href="array-grid.js">array-grid.js</a>.</p>
39 <div id="grid-example"></div>