1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
\r
4 <title>Rico LiveGrid-Example 1</title>
\r
6 <script src="LoadRicoClient.js" type="text/javascript"></script>
\r
7 <link href="../demo.css" type="text/css" rel="stylesheet" />
\r
9 <script type='text/javascript'>
\r
10 Rico.onLoad( function() {
\r
12 [1,'Cell 1:2','Cell 1:3','Cell 1:4','Cell 1:5'],
\r
13 [2,'Cell 2:2','Cell 2:3','Cell 2:4','Cell 2:5'],
\r
14 [3,'Cell 3:2','Cell 3:3','Cell 3:4','Cell 3:5'],
\r
15 [4,'Cell 4:2','Cell 4:3','Cell 4:4','Cell 4:5']
\r
18 useUnformattedColWidth: false,
\r
20 visibleRows : 'data',
\r
22 menuEvent : 'click',
\r
23 columnSpecs : [{Hdg:'Column 1',type:'number', decPlaces:0, ClassName:'alignright'},
\r
29 var buffer=new Rico.Buffer.Base();
\r
30 buffer.loadRowsFromArray(myData);
\r
31 var ex1=new Rico.LiveGrid ('ex1', buffer, opts);
\r
32 ex1.menu=new Rico.GridMenu();
\r
40 <div id='explanation'>
\r
42 <script type='text/javascript'>
\r
43 document.write(Rico.Lib+' '+Rico.LibVersion);
\r
46 This example demonstrates how to populate a grid from a javascript array.
\r
49 [1,'Cell 1:2','Cell 1:3','Cell 1:4','Cell 1:5'],
\r
50 [2,'Cell 2:2','Cell 2:3','Cell 2:4','Cell 2:5'],
\r
51 [3,'Cell 3:2','Cell 3:3','Cell 3:4','Cell 3:5'],
\r
52 [4,'Cell 4:2','Cell 4:3','Cell 4:4','Cell 4:5']
\r
54 var buffer=new Rico.Buffer.Base();
\r
55 buffer.loadRowsFromArray(myData);
\r
59 <p class="ricoBookmark"><span id="ex1_bookmark"> </span></p>
\r
60 <div id="ex1"></div>
\r