From: Matt Brown
Date: Fri, 3 Jun 2011 23:12:22 +0000 (+0000)
Subject: .net server control is almost feature complete and functional. All .net examples...
X-Git-Url: https://git.infodrom.org/?p=infodrom%2Frico3;a=commitdiff_plain;h=95eb9e809d4258904819ecad5fd30f3015c146c4;ds=sidebyside
.net server control is almost feature complete and functional. All .net examples have been updated and are working. Added server control source code to svn in new rico3.net branch. Use vb.net express edition 2010 to compile it.
git-svn-id: svn://svn.code.sf.net/p/openrico/code/trunk/rico3@84 53df2df2-7ab5-4331-af62-ea79255fa4e2
---
diff --git a/bin/Rico.dll b/bin/Rico.dll
index a3dc4ce..4957a27 100644
Binary files a/bin/Rico.dll and b/bin/Rico.dll differ
diff --git a/documentation/LiveGrid.html b/documentation/LiveGrid.html
index 471a2fb..ccc411f 100644
--- a/documentation/LiveGrid.html
+++ b/documentation/LiveGrid.html
@@ -723,22 +723,6 @@ See also the filterUI option.
Token in select filters used to indicate "show all values" (default: "___ALL___").
-
Images
-
-
resizeBackground
-
Image to use for column resize handle. (default: 'resize.gif')
-
-
sortAscendImg
-
Image to use to indicate that the column is sorted in ascending order. (default: 'sort_asc.gif')
-
-
sortDescendImg
-
Image to use to indicate that the column is sorted in descending order. (default: 'sort_desc.gif')
-
-
filterImg
-
Image used to indicate an active filter on a column. (default: 'filtercol.gif')
-
-
-
Cookie options
@@ -1005,19 +989,18 @@ use a align="right" on the <th> tag to accomplish the header alignment.
type (DataType in .net plug-in)
A string containing one of these values:
-
text - any tags in the column value are removed before being displayed to the user.
-
showTags - any tags in the column value are displayed to the user as text.
+
text (default) - plain text.
number - column value is treated as a number,
and any number formatting options
supplied in the column specification are applied.
datetime - column value is treated as a date & time,
and any date formatting options
supplied in the column specification are applied.
-
UTCasLocalTime - column/database value is treated as a GMT/UTC date & time, and any date formatting options
+
utcaslocaltime - column/database value is treated as a GMT/UTC date & time, and any date formatting options
supplied in the column specification are applied. Before display, the value is converted to the user's local time zone.
date - column value is treated as a date, and any date formatting options
supplied in the column specification are applied.
-
raw (default) - column values are displayed directly to the grid cell.
+
html - column values are displayed directly to the grid cell.
Any HTML markup gets copied into the cell.
@@ -1169,11 +1152,8 @@ to which the filter is applied.
decPlaces
Number of places to the right of the decimal point. (default: 0)
-
decPoint
-
Decimal point symbol. (default: '.' but overridden in the translation files)
-
thouSep
-
Symbol for thousands separator. (default: ',' but overridden in the translation files)
+
Boolean indicating whether to insert thousands separator. (default: true)
negSign
Specifies how negative numbers should be displayed. Possible values:
diff --git a/examples/dotnet/3grids.aspx b/examples/dotnet/3grids.aspx
index 73e088f..1f2ab14 100644
--- a/examples/dotnet/3grids.aspx
+++ b/examples/dotnet/3grids.aspx
@@ -105,12 +105,6 @@ function detailDataMenu(objCell,onBlankRow) {
float: left;
padding: 5px;
}
-
-div.ricoLG_cell {
- font-size: 8pt;
- height: 12px;
- white-space: nowrap;
-}
@@ -141,45 +135,51 @@ Double-click on an order to see the line items for that order.
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/examples/dotnet/RicoDbViewer.aspx b/examples/dotnet/RicoDbViewer.aspx
index 91371be..639eb2d 100644
--- a/examples/dotnet/RicoDbViewer.aspx
+++ b/examples/dotnet/RicoDbViewer.aspx
@@ -8,8 +8,12 @@
Sub Page_Load(Sender As object, e As EventArgs)
Dim restrictions() As String = New String(3) {}
if app.OpenDB() then
- restrictions(3)="BASE TABLE"
- 'restrictions(3)="TABLE"
+
+ select case app.dbDialect
+ case "Access": restrictions(3)="TABLE"
+ case else: restrictions(3)="BASE TABLE"
+ end select
+
TableList.DataSource = app.dbConnection.GetSchema ("Tables", restrictions)
TableList.DataBind()
restrictions(3)="VIEW"
@@ -65,7 +69,7 @@ html, body {
-
+
@@ -77,7 +81,7 @@ html, body {
-
+
diff --git a/examples/dotnet/RicoDbViewerDetail.aspx b/examples/dotnet/RicoDbViewerDetail.aspx
index 4fa5028..68461bb 100644
--- a/examples/dotnet/RicoDbViewerDetail.aspx
+++ b/examples/dotnet/RicoDbViewerDetail.aspx
@@ -10,33 +10,37 @@ Dim TableName as String
Sub Page_Load(Sender As object, e As EventArgs)
Dim restrictions() As String = New String(2) {}
Dim ColumnInfo As DataTable
+ Dim ColumnObj
+ Dim colname as String, colname0 as String, datatype as String
- TableName = trim(request.querystring("id"))
- if app.OpenGrid(dbViewer) then
-
+ TableName = trim(request.querystring("tabid"))
+ if app.OpenGrid(dbViewer) AndAlso TableName<>"" then
+
restrictions(2)=TableName
ColumnInfo = app.dbConnection.GetSchema ("Columns", restrictions)
- Dim colname as String, colname0 as String, datatype as String
+ dbViewer.Tables.Add(new Rico.Table("[" & TableName & "]"))
+ dbViewer.requestParameters.Add("tabid",TableName) ' need to get the table name back so we can define columns every during every AJAX call
+
For Each colinfo As DataRow In ColumnInfo.Rows
colname=colinfo("COLUMN_NAME").ToString
datatype=colinfo("DATA_TYPE").ToString
if IsNothing(colname0) then colname0=colname
if IsNumeric(datatype) then datatype=ADOColType(datatype)
- Dim ColumnObj as New Rico.Column()
if InStr(1,datatype,"binary",1) > 0 or left(datatype,3)="???" or datatype="image" then
+ ColumnObj = New Rico.FormulaCol()
ColumnObj.Formula = "'?'"
else
+ ColumnObj = New Rico.TableCol()
ColumnObj.ColName = colname
end if
ColumnObj.Heading=colname
ColumnObj.width=100
- if InStr(1,datatype,"DATETIME",1) > 0 then ColumnObj.DataType="datetime"
+ if InStr(1,datatype,"DATETIME",1) > 0 then ColumnObj.DataType=Rico.Column.DataTypeValues.date
dbViewer.AddColumn(ColumnObj)
Next
dbViewer.DefaultSort = colname0
- dbViewer.TableName = "[" & TableName & "]"
end if
End Sub
diff --git a/examples/dotnet/ShipperEdit.aspx b/examples/dotnet/ShipperEdit.aspx
index 63f2a6b..80ddee8 100644
--- a/examples/dotnet/ShipperEdit.aspx
+++ b/examples/dotnet/ShipperEdit.aspx
@@ -3,12 +3,11 @@
<%@ Register TagPrefix="My" TagName="dbLib" Src="dbConnect.ascx" %>
-
@@ -21,11 +20,6 @@ End Sub
-
@@ -41,10 +35,11 @@ Updates are disabled on the database, so you will get an error message if you tr
Shippers Table
-
-
-
-
+
+
+
+
+
@@ -46,23 +43,24 @@ Updates are disabled on the database, so you will get an error message if you tr
Employees Table
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -44,246 +28,249 @@ Department of Economic and Social Affairs of the United Nations Secretariat
World Population Prospects: The 2008 Revision. Highlights. New York: United Nations.
-