1 <%@ Page Language="VB" ResponseEncoding="iso-8859-1" Debug="true" validateRequest="false" %>
\r
2 <%@ Register TagPrefix="My" TagName="LoadRicoClient" Src="LoadRicoClient.ascx" %>
\r
3 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
\r
6 <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
\r
7 <title>Rico LiveGrid sourced from HTML table</title>
\r
9 <My:LoadRicoClient id='initlibs' runat='server' modules='LiveGridBasic,LiveGridMenu' />
\r
10 <link href="../demo.css" type="text/css" rel="stylesheet" />
\r
12 <script type='text/javascript'>
\r
13 Rico.onLoad( function() {
\r
14 //alert('We are stopping here, at the start of the onLoad event, to show you that the grid is populated with data from a regular HTML table. This is what browsers with javascript disabled would display.');
\r
16 menuEvent : 'click',
\r
18 highlightElem: 'cursorRow',
\r
20 useUnformattedColWidth: false,
\r
21 columnSpecs : [{width:200},'specQty','specQty','specQty','specQty','specQty']
\r
23 var ex1=new Rico.LiveGrid ('population', new Rico.Buffer.Base(document.getElementById('population').tBodies[0]), opts);
\r
24 ex1.menu=new Rico.GridMenu({});
\r
32 <table id='explanation' border='0' cellpadding='0' cellspacing='5' style='clear:both'><tr valign='top'><td>
\r
34 <script type='text/javascript'>
\r
35 document.write(Rico.Lib+' '+Rico.LibVersion);
\r
38 This example demonstrates how Rico can convert an existing HTML table into
\r
39 a much more usable LiveGrid.
\r
40 LiveGrid provides scrolling, column resizing, filtering, and sorting capabilities.
\r
41 Click on a cell to see available actions.
\r
42 <p style='font-size:smaller;'>Data source: <a href="http://www.un.org/esa/population/unpop.htm">Population Division of the
\r
43 Department of Economic and Social Affairs of the United Nations Secretariat</a> (2009).
\r
44 <em>World Population Prospects: The 2008 Revision. Highlights.</em> New York: United Nations. </p>
\r
47 <script type="text/javascript"><!--
\r
48 google_ad_client = "pub-7218597156507462";
\r
49 /* 125x125, created 5/11/09 */
\r
50 google_ad_slot = "9298106441";
\r
51 google_ad_width = 125;
\r
52 google_ad_height = 125;
\r
55 <script type="text/javascript"
\r
56 src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
\r
61 <p class="ricoBookmark"><span id="population_bookmark"> </span></p>
\r
62 <table class="ricoLiveGrid" id="population">
\r
65 <td class='ricoFrozen'></td>
\r
66 <td colspan=5>Population (thousands)</td>
\r
69 <td class='ricoFrozen'>Country or area</td>
\r
79 <td>Afghanistan</td>
\r
103 <td>American Samoa</td>
\r
135 <td>Antigua and Barbuda</td>
\r
183 <td>Azerbaijan</td>
\r
207 <td>Bangladesh</td>
\r
279 <td>Bosnia and Herzegovina</td>
\r
303 <td>British Virgin Islands</td>
\r
311 <td>Brunei Darussalam</td>
\r
327 <td>Burkina Faso</td>
\r
367 <td>Cape Verde</td>
\r
375 <td>Cayman Islands</td>
\r
383 <td>Central African Republic</td>
\r
399 <td>Channel Islands</td>
\r
423 <td>China, Hong Kong SAR</td>
\r
431 <td>China, Macao SAR</td>
\r
463 <td>Cook Islands</td>
\r
471 <td>Costa Rica</td>
\r
479 <td>Côte d'Ivoire</td>
\r
511 <td>Czech Republic</td>
\r
519 <td>Dem. People's Rep. of Korea</td>
\r
527 <td>Dem. Republic of the Congo</td>
\r
559 <td>Dominican Republic</td>
\r
583 <td>El Salvador</td>
\r
591 <td>Equatorial Guinea</td>
\r
623 <td>Faeroe Islands</td>
\r
631 <td>Falkland Islands (Malvinas)</td>
\r
663 <td>French Guiana</td>
\r
671 <td>French Polynesia</td>
\r
751 <td>Guadeloupe</td>
\r
783 <td>Guinea-Bissau</td>
\r
855 <td>Iran (Islamic Republic of)</td>
\r
879 <td>Isle of Man</td>
\r
927 <td>Kazakhstan</td>
\r
959 <td>Kyrgyzstan</td>
\r
967 <td>Lao People's Dem. Republic</td>
\r
1007 <td>Libyan Arab Jamahiriya</td>
\r
1015 <td>Liechtenstein</td>
\r
1023 <td>Lithuania</td>
\r
1031 <td>Luxembourg</td>
\r
1039 <td>Madagascar</td>
\r
1087 <td>Marshall Islands</td>
\r
1095 <td>Martinique</td>
\r
1103 <td>Mauritania</td>
\r
1111 <td>Mauritius</td>
\r
1135 <td>Micronesia (Fed. States of)</td>
\r
1143 <td>Moldova (Republic of)</td>
\r
1167 <td>Montenegro</td>
\r
1175 <td>Montserrat</td>
\r
1191 <td>Mozambique</td>
\r
1231 <td>Netherlands</td>
\r
1239 <td>Netherlands Antilles</td>
\r
1247 <td>New Caledonia</td>
\r
1255 <td>New Zealand</td>
\r
1263 <td>Nicaragua</td>
\r
1295 <td>Northern Mariana Islands</td>
\r
1311 <td>Occupied Palestinian Territory</td>
\r
1351 <td>Papua New Guinea</td>
\r
1375 <td>Philippines</td>
\r
1407 <td>Puerto Rico</td>
\r
1423 <td>Republic of Korea</td>
\r
1447 <td>Russian Federation</td>
\r
1463 <td>Saint Helena</td>
\r
1471 <td>Saint Kitts and Nevis</td>
\r
1479 <td>Saint Lucia</td>
\r
1487 <td>Saint Pierre and Miquelon</td>
\r
1495 <td>St. Vincent and the Grenadines</td>
\r
1511 <td>San Marino</td>
\r
1519 <td>Sao Tome and Principe</td>
\r
1527 <td>Saudi Arabia</td>
\r
1551 <td>Seychelles</td>
\r
1559 <td>Sierra Leone</td>
\r
1567 <td>Singapore</td>
\r
1591 <td>Solomon Islands</td>
\r
1607 <td>South Africa</td>
\r
1623 <td>Sri Lanka</td>
\r
1647 <td>Swaziland</td>
\r
1663 <td>Switzerland</td>
\r
1671 <td>Syrian Arab Republic</td>
\r
1679 <td>Tajikistan</td>
\r
1687 <td>TFYR Macedonia</td>
\r
1703 <td>Timor-Leste</td>
\r
1735 <td>Trinidad and Tobago</td>
\r
1759 <td>Turkmenistan</td>
\r
1767 <td>Turks and Caicos Islands</td>
\r
1799 <td>United Arab Emirates</td>
\r
1807 <td>United Kingdom</td>
\r
1815 <td>United Republic of Tanzania</td>
\r
1823 <td>United States of America</td>
\r
1831 <td>United States Virgin Islands</td>
\r
1847 <td>Uzbekistan</td>
\r
1863 <td>Venezuela (Bolivarian Republic of)</td>
\r
1879 <td>Wallis and Futuna Islands</td>
\r
1887 <td>Western Sahara</td>
\r