.net server control is almost feature complete and functional. All .net examples...
[infodrom/rico3] / examples / dotnet / ex2json.aspx
index 7845f92..3ccf52b 100644 (file)
@@ -21,11 +21,6 @@ End Sub
 <Rico:LoadClient checkQueryString='true' runat='server' />\r
 <link href="../demo.css" type="text/css" rel="stylesheet" />\r
 \r
-<style type="text/css">\r
-div.ricoLG_cell {\r
-  white-space:nowrap;\r
-}\r
-</style>\r
 </head>\r
 <body>\r
 \r
@@ -44,16 +39,15 @@ Click on a cell to see available actions.
 (displays directly in Chrome and Safari, requires JSONview or similar extension in Firefox).\r
 </div>\r
 \r
-<Rico:LiveGrid runat='server' id='ex2j' fmt="json" TableName='orders' DefaultSort='OrderID' menuEvent='click' frozenColumns='1' highlightElem='cursorRow'>\r
-<GridColumns>\r
-  <Rico:Column runat='server' ColName='OrderID' heading='Order#' width='60' />\r
-  <Rico:Column runat='server' ColName='CustomerID' heading='Cust#' width='60' />\r
-  <Rico:Column runat='server' ColName='ShipName' heading='Ship Name' width='150' />\r
-  <Rico:Column runat='server' ColName='ShipCity' heading='Ship City' width='120' />\r
-  <Rico:Column runat='server' ColName='ShipCountry' heading='Ship Country' width='90' />\r
-  <Rico:Column runat='server' ColName='OrderDate' heading='Order Date' datatype='date' width='100' />\r
-  <Rico:Column runat='server' ColName='ShippedDate' heading='Ship Date' datatype='date' width='100' />\r
-</GridColumns>\r
+<Rico:LiveGrid runat='server' id='ex2j' fmt="json" DefaultSort='OrderID' menuEvent='click' frozenColumns='1' highlightElem='cursorRow'>\r
+  <Rico:Table runat='server' TblName='orders' />\r
+  <Rico:TableCol runat='server' ColName='OrderID' heading='Order#' width='60' />\r
+  <Rico:TableCol runat='server' ColName='CustomerID' heading='Cust#' width='60' />\r
+  <Rico:TableCol runat='server' ColName='ShipName' heading='Ship Name' width='150' />\r
+  <Rico:TableCol runat='server' ColName='ShipCity' heading='Ship City' width='120' />\r
+  <Rico:TableCol runat='server' ColName='ShipCountry' heading='Ship Country' width='90' />\r
+  <Rico:TableCol runat='server' ColName='OrderDate' heading='Order Date' datatype='date' width='100' />\r
+  <Rico:TableCol runat='server' ColName='ShippedDate' heading='Ship Date' datatype='date' width='100' />\r
 </Rico:LiveGrid>\r
 \r
 </body>\r