1 <%@ Page Language="VB" ResponseEncoding="iso-8859-1" Debug="true" validateRequest="false" %>
\r
2 <%@ Register TagPrefix="Rico" Assembly="Rico" NameSpace="Rico" %>
\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 <Rico:LoadClient checkQueryString='true' runat='server' />
\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 <div id='explanation'>
\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 <p class="ricoBookmark"><span id="population_bookmark"> </span></p>
\r
48 <table class="ricoLiveGrid" id="population">
\r
51 <td class='ricoFrozen'></td>
\r
52 <td colspan=5>Population (thousands)</td>
\r
55 <td class='ricoFrozen'>Country or area</td>
\r
65 <td>Afghanistan</td>
\r
89 <td>American Samoa</td>
\r
121 <td>Antigua and Barbuda</td>
\r
169 <td>Azerbaijan</td>
\r
193 <td>Bangladesh</td>
\r
265 <td>Bosnia and Herzegovina</td>
\r
289 <td>British Virgin Islands</td>
\r
297 <td>Brunei Darussalam</td>
\r
313 <td>Burkina Faso</td>
\r
353 <td>Cape Verde</td>
\r
361 <td>Cayman Islands</td>
\r
369 <td>Central African Republic</td>
\r
385 <td>Channel Islands</td>
\r
409 <td>China, Hong Kong SAR</td>
\r
417 <td>China, Macao SAR</td>
\r
449 <td>Cook Islands</td>
\r
457 <td>Costa Rica</td>
\r
465 <td>Côte d'Ivoire</td>
\r
497 <td>Czech Republic</td>
\r
505 <td>Dem. People's Rep. of Korea</td>
\r
513 <td>Dem. Republic of the Congo</td>
\r
545 <td>Dominican Republic</td>
\r
569 <td>El Salvador</td>
\r
577 <td>Equatorial Guinea</td>
\r
609 <td>Faeroe Islands</td>
\r
617 <td>Falkland Islands (Malvinas)</td>
\r
649 <td>French Guiana</td>
\r
657 <td>French Polynesia</td>
\r
737 <td>Guadeloupe</td>
\r
769 <td>Guinea-Bissau</td>
\r
841 <td>Iran (Islamic Republic of)</td>
\r
865 <td>Isle of Man</td>
\r
913 <td>Kazakhstan</td>
\r
945 <td>Kyrgyzstan</td>
\r
953 <td>Lao People's Dem. Republic</td>
\r
993 <td>Libyan Arab Jamahiriya</td>
\r
1001 <td>Liechtenstein</td>
\r
1009 <td>Lithuania</td>
\r
1017 <td>Luxembourg</td>
\r
1025 <td>Madagascar</td>
\r
1073 <td>Marshall Islands</td>
\r
1081 <td>Martinique</td>
\r
1089 <td>Mauritania</td>
\r
1097 <td>Mauritius</td>
\r
1121 <td>Micronesia (Fed. States of)</td>
\r
1129 <td>Moldova (Republic of)</td>
\r
1153 <td>Montenegro</td>
\r
1161 <td>Montserrat</td>
\r
1177 <td>Mozambique</td>
\r
1217 <td>Netherlands</td>
\r
1225 <td>Netherlands Antilles</td>
\r
1233 <td>New Caledonia</td>
\r
1241 <td>New Zealand</td>
\r
1249 <td>Nicaragua</td>
\r
1281 <td>Northern Mariana Islands</td>
\r
1297 <td>Occupied Palestinian Territory</td>
\r
1337 <td>Papua New Guinea</td>
\r
1361 <td>Philippines</td>
\r
1393 <td>Puerto Rico</td>
\r
1409 <td>Republic of Korea</td>
\r
1433 <td>Russian Federation</td>
\r
1449 <td>Saint Helena</td>
\r
1457 <td>Saint Kitts and Nevis</td>
\r
1465 <td>Saint Lucia</td>
\r
1473 <td>Saint Pierre and Miquelon</td>
\r
1481 <td>St. Vincent and the Grenadines</td>
\r
1497 <td>San Marino</td>
\r
1505 <td>Sao Tome and Principe</td>
\r
1513 <td>Saudi Arabia</td>
\r
1537 <td>Seychelles</td>
\r
1545 <td>Sierra Leone</td>
\r
1553 <td>Singapore</td>
\r
1577 <td>Solomon Islands</td>
\r
1593 <td>South Africa</td>
\r
1609 <td>Sri Lanka</td>
\r
1633 <td>Swaziland</td>
\r
1649 <td>Switzerland</td>
\r
1657 <td>Syrian Arab Republic</td>
\r
1665 <td>Tajikistan</td>
\r
1673 <td>TFYR Macedonia</td>
\r
1689 <td>Timor-Leste</td>
\r
1721 <td>Trinidad and Tobago</td>
\r
1745 <td>Turkmenistan</td>
\r
1753 <td>Turks and Caicos Islands</td>
\r
1785 <td>United Arab Emirates</td>
\r
1793 <td>United Kingdom</td>
\r
1801 <td>United Republic of Tanzania</td>
\r
1809 <td>United States of America</td>
\r
1817 <td>United States Virgin Islands</td>
\r
1833 <td>Uzbekistan</td>
\r
1849 <td>Venezuela (Bolivarian Republic of)</td>
\r
1865 <td>Wallis and Futuna Islands</td>
\r
1873 <td>Western Sahara</td>
\r