1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
\r
4 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
\r
5 <title>From Markup Grid Example</title>
\r
6 <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
\r
9 <script type="text/javascript" src="../../adapter/ext/ext-base.js"></script>
\r
12 <script type="text/javascript" src="../../ext-all.js"></script>
\r
14 <script type="text/javascript" src="../ux/TableGrid.js"></script>
\r
15 <script type="text/javascript" src="from-markup.js"></script>
\r
16 <link rel="stylesheet" type="text/css" href="grid-examples.css" />
\r
17 <!-- Common Styles for the examples -->
\r
18 <link rel="stylesheet" type="text/css" href="../shared/examples.css" />
\r
19 <style type="text/css">
\r
20 #the-table { border:1px solid #bbb;border-collapse:collapse; }
\r
21 #the-table td,#the-table th { border:1px solid #ccc;border-collapse:collapse;padding:5px; }
\r
25 <script type="text/javascript" src="../shared/examples.js"></script><!-- EXAMPLES -->
\r
26 <h1>From Markup Grid Example</h1>
\r
27 <p>This example shows how to create a grid with from an existing, unformatted HTML table.</p>
\r
28 <p>Note that the js is not minified so it is readable. See <a href="from-markup.js">from-markup.js</a>.</p>
\r
29 <button id="create-grid" type="button">Create grid</button>
\r
32 <table cellspacing="0" id="the-table">
\r
34 <tr style="background:#eeeeee;">
\r
36 <th style="width: 40px;">Age</th>
\r
42 <td>Barney Rubble</td>
\r
47 <td>Fred Flintstone</td>
\r
52 <td>Betty Rubble</td>
\r