In .net, changed bold, italic, underline, and wrap to TriState. Also in .net, Excel...
[infodrom/rico3] / examples / dotnet / ex2json.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 \r
7 <script runat="server">\r
8 \r
9 Sub Page_Load(Sender As object, e As EventArgs)\r
10   Session.Timeout=60\r
11   app.OpenGrid(ex2j)\r
12 End Sub\r
13 \r
14 </script>\r
15 \r
16 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">\r
17 <html>\r
18 <head>\r
19 <title>Rico LiveGrid-Example 2</title>\r
20 \r
21 <Rico:LoadClient checkQueryString='true' runat='server' />\r
22 <link href="../demo.css" type="text/css" rel="stylesheet" />\r
23 \r
24 </head>\r
25 <body>\r
26 \r
27 <div id='explanation'>\r
28 Base Library: \r
29 <script type='text/javascript'>\r
30 document.write(Rico.Lib+' '+Rico.LibVersion);\r
31 </script>\r
32 <hr>\r
33 This example uses AJAX to fetch order data, as required, from the server. \r
34 Notice how the number of visible rows is set automatically based\r
35 on the size of the window. Try the different grid styles that\r
36 are available. \r
37 Click on a cell to see available actions.\r
38 <a href='<%=Page.Request.ServerVariables("SCRIPT_NAME")%>?_action_ex2j=query&offset=0&page_size=10'>View the AJAX response (JSON)</a>\r
39 (displays directly in Chrome and Safari, requires JSONview or similar extension in Firefox).\r
40 </div>\r
41 \r
42 <Rico:LiveGrid runat='server' id='ex2j' fmt="json" DefaultSort='OrderID' menuEvent='click' frozenColumns='1' highlightElem='cursorRow'>\r
43   <Rico:Table runat='server' TblName='orders' />\r
44   <Rico:TableCol runat='server' ColName='OrderID' heading='Order#' width='60' />\r
45   <Rico:TableCol runat='server' ColName='CustomerID' heading='Cust#' width='60' />\r
46   <Rico:TableCol runat='server' ColName='ShipName' heading='Ship Name' width='150' />\r
47   <Rico:TableCol runat='server' ColName='ShipCity' heading='Ship City' width='120' />\r
48   <Rico:TableCol runat='server' ColName='ShipCountry' heading='Ship Country' width='90' />\r
49   <Rico:TableCol runat='server' ColName='OrderDate' heading='Order Date' datatype='date' width='100' />\r
50   <Rico:TableCol runat='server' ColName='ShippedDate' heading='Ship Date' datatype='date' width='100' />\r
51 </Rico:LiveGrid>\r
52 \r
53 </body>\r
54 </html>\r