Fixes to some Rico 3 .net examples. Also added 2 new .net examples. Added Dojo 1...
[infodrom/rico3] / examples / dotnet / ex2style.aspx
1 <%@ Page Language="VB" ResponseEncoding="iso-8859-1" %>\r
2 <%@ Register TagPrefix="Rico" Assembly="Rico" NameSpace="Rico" %>\r
3 <%@ Register TagPrefix="My" TagName="dbLib" Src="dbConnect.ascx" %>\r
4 <My:dbLib id='app' runat='server' />\r
5 \r
6 <script runat="server">\r
7 \r
8 Sub Page_Load(Sender As object, e As EventArgs)\r
9   Session.Timeout=60\r
10   app.OpenGrid(ex2style)\r
11 End Sub\r
12 \r
13 </script>\r
14 \r
15 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">\r
16 <html>\r
17 <head>\r
18 <title>Rico LiveGrid-Example 2</title>\r
19 \r
20 <Rico:LoadClient checkQueryString='true' runat='server' />\r
21 <link href="../demo.css" type="text/css" rel="stylesheet" />\r
22 \r
23 </head>\r
24 <body>\r
25 \r
26 <div id='explanation'>\r
27 Base Library: \r
28 <script type='text/javascript'>\r
29 document.write(Rico.Lib+' '+Rico.LibVersion);\r
30 </script>\r
31 <hr>\r
32 This example shows that columns can be styled. The two date columns have the font color set to red.\r
33 Notice that when you export to Excel, those Excel columns are also red. Styles and number formats get copied into the Excel export!\r
34 Click on a cell to see available actions.\r
35 </div>\r
36 \r
37 <Rico:LiveGrid runat='server' id='ex2style' DefaultSort='OrderID' menuEvent='click' frozenColumns='1' highlightElem='cursorRow'>\r
38   <Rico:Table runat='server' TblName='orders' />\r
39   <Rico:TableCol runat='server' ColName='OrderID' heading='Order#' width='60' />\r
40   <Rico:TableCol runat='server' ColName='CustomerID' heading='Cust#' width='60' />\r
41   <Rico:TableCol runat='server' ColName='ShipName' heading='Ship Name' width='150' />\r
42   <Rico:TableCol runat='server' ColName='ShipCity' heading='Ship City' width='120' />\r
43   <Rico:TableCol runat='server' ColName='ShipCountry' heading='Ship Country' width='90' />\r
44   <Rico:TableCol runat='server' ColName='OrderDate' heading='Order Date' datatype='date' width='100' ForeColor='red' />\r
45   <Rico:TableCol runat='server' ColName='ShippedDate' heading='Ship Date' datatype='date' width='100' ForeColor='red' />\r
46 </Rico:LiveGrid>\r
47 \r
48 </body>\r
49 </html>\r