Updated LoadRicoClient for asp and php, so all asp and php examples are working again...
authorMatt Brown <dowdybrown@yahoo.com>
Sun, 17 Jul 2011 22:08:30 +0000 (22:08 +0000)
committerMatt Brown <dowdybrown@yahoo.com>
Sun, 17 Jul 2011 22:08:30 +0000 (22:08 +0000)
git-svn-id: svn://svn.code.sf.net/p/openrico/code/trunk/rico3@95 53df2df2-7ab5-4331-af62-ea79255fa4e2

bin/Rico.dll
bin/Rico.xml
examples/dotnet/photos.aspx
examples/php/LoadRicoClient.php
examples/php/photos.php
examples/php/simplegrid.php
plugins/asp/LoadRicoClient.asp
ricoClient/css/rico.css

index c1387fe..0620359 100644 (file)
Binary files a/bin/Rico.dll and b/bin/Rico.dll differ
index 3fd57b5..2163a66 100644 (file)
@@ -6,24 +6,42 @@ Rico
 </name>\r
 </assembly>\r
 <members>\r
 </name>\r
 </assembly>\r
 <members>\r
-<member name="M:Rico.TableCollection.IndexOf(System.String)">\r
+<member name="P:Rico.TreeResponse.ErrorMsg">\r
        <summary>\r
        <summary>\r
- Returns the index of the table with TblAlias or -1 if not found\r
+ May contain the text of an error message that occurred outside this control prior to rendering\r
  </summary>\r
  </summary>\r
-       <param name="TblAlias"></param>\r
-</member><member name="P:Rico.My.Resources.Resources.ResourceManager">\r
+       <value></value>\r
+       <returns></returns>\r
+       <remarks></remarks>\r
+</member><member name="P:Rico.TreeResponse.dbConnection">\r
        <summary>\r
        <summary>\r
-  Returns the cached ResourceManager instance used by this class.\r
-</summary>\r
-</member><member name="P:Rico.My.Resources.Resources.Culture">\r
+ Database connection object. Required only if sqlText is used.\r
+ </summary>\r
+       <value></value>\r
+       <remarks></remarks>\r
+</member><member name="P:Rico.TreeResponse.SqlText">\r
        <summary>\r
        <summary>\r
-  Overrides the current thread's CurrentUICulture property for all\r
-  resource lookups using this strongly typed resource class.\r
-</summary>\r
-</member><member name="T:Rico.My.Resources.Resources">\r
+ Optional sql query to execute, must return 5 columns matching WriteTreeRow parameters \r
+ </summary>\r
+       <value></value>\r
+       <returns></returns>\r
+       <remarks></remarks>\r
+</member><member name="M:Rico.TreeResponse.WriteTreeRow(System.Object,System.Object,System.Object,System.Object,System.Object)">\r
        <summary>\r
        <summary>\r
-  A strongly-typed resource class, for looking up localized strings, etc.\r
-</summary>\r
+ Adds an entry that will be returned with the results. Often used to add the root node.\r
+ </summary>\r
+       <param name="parentID">id of parent, "" if this is the root</param>\r
+       <param name="ID">id that uniquely identifies this node in the tree</param>\r
+       <param name="description">description displayed to the user</param>\r
+       <param name="containerORleaf">"L" or 0 = leaf, "C" or non-zero = container</param>\r
+       <param name="selectable">0=not selectable, 1=selectable</param>\r
+       <remarks></remarks>\r
+</member><member name="T:Rico.TreeResponse">\r
+       <summary>\r
+ Use this class on a page that responds to AJAX requests from a Rico Tree Control\r
+ This class automatically disables caching of the response and sets the response type to text/xml\r
+ </summary>\r
+       <remarks></remarks>\r
 </member><member name="T:Rico.sqlParse.sqlColumn">\r
        <summary>\r
  Represents a column in the select statement\r
 </member><member name="T:Rico.sqlParse.sqlColumn">\r
        <summary>\r
  Represents a column in the select statement\r
@@ -124,6 +142,173 @@ Rico
  Holds a SQL select statement. Methods to load/parse a select statement from a string and to reassemble it in various ways.\r
  Does not handle union queries.\r
  </summary>\r
  Holds a SQL select statement. Methods to load/parse a select statement from a string and to reassemble it in various ways.\r
  Does not handle union queries.\r
  </summary>\r
+</member><member name="P:Rico.SimpleCol.Width">\r
+       <summary>\r
+ Initial width of the column in pixels. Default is to use SimpleGrid.defaultWidth.\r
+ </summary>\r
+</member><member name="F:Rico.Column.canSort">\r
+       <summary>\r
+ Is the user allowed to sort the column? Default is true.\r
+ </summary>\r
+       <remarks></remarks>\r
+</member><member name="F:Rico.Column.canDrag">\r
+       <summary>\r
+ Is the user allowed to drag a column value? Default is false.\r
+ </summary>\r
+       <remarks></remarks>\r
+</member><member name="F:Rico.Column.canFilter">\r
+       <summary>\r
+ Is the user allowed to filter the column? Default is true.\r
+ </summary>\r
+       <remarks></remarks>\r
+</member><member name="F:Rico.Column.control">\r
+       <summary>\r
+ Javascript code to create a control object, which changes the way the column data is rendered.\r
+ The disadvantage of using this approach is that the altered rendering does not get reflected in exports.\r
+ A set of controls is defined in ricoLiveGridControls.js or the developer can create their own.\r
+ </summary>\r
+       <remarks></remarks>\r
+</member><member name="F:Rico.Column.filterUI">\r
+       <summary>\r
+ If the AutoFilter option is enabled for the grid, then filterUI will control how each column is filtered. If filterUI is:\r
+ <list type="bullet">\r
+                       <item><description>null or omitted, then no filter is displayed for the column.</description></item>\r
+                       <item><description>'t' - will generate a text box filter and the records being displayed are filtered as the user types. May be followed by a number to indicate the size of the text box (default size is 10). </description></item>\r
+                       <item><description>'s' - will generate a select list filter with all possible column values contained in the list. Populated using a 'select distinct' query if the grid's source is a SQL query.</description></item>\r
+                       <item><description>'m' - will generate multi-select checklist filter, with a checkbox text to each item.</description></item>\r
+               </list>\r
+       </summary>\r
+       <remarks></remarks>\r
+</member><member name="F:Rico.Column.filterColId">\r
+       <summary>\r
+ This setting allows the filterUI to filter a different column than where it is displayed.\r
+ This is particularly useful for dates, where you can show a year selection on an OrderDate date column for example,\r
+ but actually have it filter a hidden column OrderYear=year(OrderDate).\r
+ </summary>\r
+       <remarks></remarks>\r
+</member><member name="F:Rico.Column.ConfirmDeleteColumn">\r
+       <summary>\r
+ The text content of this column will be included in delete confirmation messages.\r
+ </summary>\r
+       <remarks></remarks>\r
+</member><member name="F:Rico.Column.multiplier">\r
+       <summary>\r
+ If column is a number, this value can be used to multiply the database value by a factor before displaying it in the grid.\r
+ Default is 1. Automatically set to 100 if DataType is percent.\r
+ </summary>\r
+       <remarks></remarks>\r
+</member><member name="F:Rico.Column.decPlaces">\r
+       <summary>\r
+ If column is a number, this is the number of digits displayed to the right of the decimal point. Default is 0.\r
+ If DataType is dollar or euro, then decPlaces is automatically set to 2.\r
+ </summary>\r
+       <remarks></remarks>\r
+</member><member name="F:Rico.Column.thouSep">\r
+       <summary>\r
+ If column is a number, display the value with a thousands separator? Default is true.\r
+ </summary>\r
+       <remarks></remarks>\r
+</member><member name="F:Rico.Column.negSign">\r
+       <summary>\r
+ Specifies how negative numbers should be displayed. Possible values:\r
+ <list>\r
+                       <item><description>L=leading minus (default)</description></item>\r
+                       <item><description>T=trailing minus</description></item>\r
+                       <item><description>P=parentheses</description></item>\r
+               </list>\r
+       </summary>\r
+</member><member name="F:Rico.Column.prefix">\r
+       <summary>\r
+ If column is a number, this string is prepended to the number before display.\r
+ Useful for currency symbols.\r
+ </summary>\r
+</member><member name="F:Rico.Column.suffix">\r
+       <summary>\r
+ If column is a number, this string is appended to the number before display.\r
+ Useful for percentages and temperature values. Automatically set to % if DataType is percent.\r
+ </summary>\r
+</member><member name="F:Rico.Column.HdgStyleID">\r
+       <summary>\r
+ Used to give the column heading a specific style.\r
+ In most cases this is not necessary, as the heading will be styled according to the theme.\r
+ </summary>\r
+</member><member name="F:Rico.Column.isNullable">\r
+       <summary>\r
+ Database property - set automatically by LiveGrid.GetColumnInfoFromDb()\r
+ </summary>\r
+</member><member name="F:Rico.Column.Writeable">\r
+       <summary>\r
+ Database property - set automatically by LiveGrid.GetColumnInfoFromDb()\r
+ </summary>\r
+</member><member name="F:Rico.Column.isKey">\r
+       <summary>\r
+ Database property - set automatically by LiveGrid.GetColumnInfoFromDb()\r
+ </summary>\r
+</member><member name="F:Rico.Column.Length">\r
+       <summary>\r
+ Database property - set automatically by LiveGrid.GetColumnInfoFromDb()\r
+ </summary>\r
+</member><member name="F:Rico.Column.TypeName">\r
+       <summary>\r
+ Database property - set automatically by LiveGrid.GetColumnInfoFromDb()\r
+ </summary>\r
+</member><member name="F:Rico.Column.ColGroupIdx">\r
+       <summary>\r
+ For internal use\r
+ </summary>\r
+</member><member name="P:Rico.Column.Heading">\r
+       <summary>\r
+ Text displayed in the column heading.\r
+ </summary>\r
+</member><member name="P:Rico.Column.Width">\r
+       <summary>\r
+ Initial width of the column in pixels. Default is to use LiveGrid.defaultWidth.\r
+ </summary>\r
+</member><member name="M:Rico.Column.NumberFormat">\r
+       <summary>\r
+ Returns an Excel-type number format string based on decPlaces, thouSep, prefix.\r
+ </summary>\r
+       <returns></returns>\r
+       <remarks></remarks>\r
+</member><member name="P:Rico.Column.DataType">\r
+       <summary>\r
+ Type of data stored in the column.\r
+ </summary>\r
+       <value></value>\r
+       <returns></returns>\r
+       <remarks></remarks>\r
+</member><member name="T:Rico.Column">\r
+       <summary>\r
+ Base class for a LiveGrid column\r
+ </summary>\r
+</member><member name="F:Rico.EditCol.FormView">\r
+       <summary>\r
+               <list type="table">\r
+                       <item><term>True</term><description>Item is shown on the entry form (default)</description></item>\r
+                       <item><term>False</term><description>Item is not shown on the form</description></item>\r
+               </list>\r
+       </summary>\r
+</member><member name="P:Rico.EditCol.EntryType">\r
+       <summary>\r
+ Code indicating the ui to be used for data entry\r
+ <list type="table">\r
+                       <item><term>TA</term><description>Text Area</description></item>\r
+                       <item><term>R</term><description>Radio button list</description></item>\r
+                       <item><term>RL</term><description>Radio buttons via lookup (field is a foreign key)</description></item>\r
+                       <item><term>S</term><description>Select list</description></item>\r
+                       <item><term>SL</term><description>Select list via lookup (field is a foreign key)</description></item>\r
+                       <item><term>CL</term><description>Custom widget via lookup (field is a foreign key)</description></item>\r
+                       <item><term>N</term><description>Select list of distinct column values, use allowed to add new values</description></item>\r
+                       <item><term>B</term><description>Text, non-blank</description></item>\r
+                       <item><term>T</term><description>Text</description></item>\r
+                       <item><term>I</term><description>Integer</description></item>\r
+                       <item><term>F</term><description>Floating point number</description></item>\r
+                       <item><term>tinyMCE</term><description>Rich text via tinyMCE</description></item>\r
+                       <item><term>D</term><description>Date</description></item>\r
+                       <item><term>TS</term><description>Time stamp</description></item>\r
+                       <item><term>H</term><description>Hidden</description></item>\r
+               </list>\r
+       </summary>\r
 </member><member name="F:Rico.LiveGridBase.largeBufferSize">\r
        <summary>\r
  controls size of client buffer and AJAX fetch size\r
 </member><member name="F:Rico.LiveGridBase.largeBufferSize">\r
        <summary>\r
  controls size of client buffer and AJAX fetch size\r
@@ -214,42 +399,11 @@ Rico
        <summary>\r
  Class to define a LiveGrid\r
  </summary>\r
        <summary>\r
  Class to define a LiveGrid\r
  </summary>\r
-</member><member name="P:Rico.TreeResponse.ErrorMsg">\r
-       <summary>\r
- May contain the text of an error message that occurred outside this control prior to rendering\r
- </summary>\r
-       <value></value>\r
-       <returns></returns>\r
-       <remarks></remarks>\r
-</member><member name="P:Rico.TreeResponse.dbConnection">\r
-       <summary>\r
- Database connection object. Required only if sqlText is used.\r
- </summary>\r
-       <value></value>\r
-       <remarks></remarks>\r
-</member><member name="P:Rico.TreeResponse.SqlText">\r
-       <summary>\r
- Optional sql query to execute, must return 5 columns matching WriteTreeRow parameters \r
- </summary>\r
-       <value></value>\r
-       <returns></returns>\r
-       <remarks></remarks>\r
-</member><member name="M:Rico.TreeResponse.WriteTreeRow(System.Object,System.Object,System.Object,System.Object,System.Object)">\r
-       <summary>\r
- Adds an entry that will be returned with the results. Often used to add the root node.\r
- </summary>\r
-       <param name="parentID">id of parent, "" if this is the root</param>\r
-       <param name="ID">id that uniquely identifies this node in the tree</param>\r
-       <param name="description">description displayed to the user</param>\r
-       <param name="containerORleaf">"L" or 0 = leaf, "C" or non-zero = container</param>\r
-       <param name="selectable">0=not selectable, 1=selectable</param>\r
-       <remarks></remarks>\r
-</member><member name="T:Rico.TreeResponse">\r
+</member><member name="M:Rico.TableCollection.IndexOf(System.String)">\r
        <summary>\r
        <summary>\r
- Use this class on a page that responds to AJAX requests from a Rico Tree Control\r
- This class automatically disables caching of the response and sets the response type to text/xml\r
+ Returns the index of the table with TblAlias or -1 if not found\r
  </summary>\r
  </summary>\r
-       <remarks></remarks>\r
+       <param name="TblAlias"></param>\r
 </member><member name="P:Rico.GridBase.gridVar">\r
        <summary>\r
  Name of grid Javascript object\r
 </member><member name="P:Rico.GridBase.gridVar">\r
        <summary>\r
  Name of grid Javascript object\r
@@ -331,121 +485,11 @@ Rico
        <summary>\r
  This class defines properties and functions used in SimpleGrid, LiveGrid and LiveGridEdit classes.\r
  </summary>\r
        <summary>\r
  This class defines properties and functions used in SimpleGrid, LiveGrid and LiveGridEdit classes.\r
  </summary>\r
-</member><member name="F:Rico.LoadClient.ImgHeading">\r
+</member><member name="P:Rico.StyleBase.bold">\r
        <summary>\r
        <summary>\r
- Background image for grid headings and window titles.\r
- Should be left unset, as it is used only for the grayedout theme (in which case it is set automatically).\r
+ True if the text should be displayed using a bold font\r
  </summary>\r
  </summary>\r
-</member><member name="F:Rico.LoadClient.BaseLib">\r
-       <summary>\r
- The base Javascript library to load from http://ajax.googleapis.com/ajax/libs/, possible values include:\r
- <list type="bullet">\r
-                       <item><description>prototype/1.6/prototype.js</description></item>\r
-                       <item><description>prototype/1.7/prototype.js</description></item>\r
-                       <item><description>jquery/1.3/jquery.min.js</description></item>\r
-                       <item><description>jquery/1.4/jquery.min.js</description></item>\r
-                       <item><description>jquery/1.5/jquery.min.js</description></item>\r
-                       <item><description>jquery/1.6/jquery.min.js</description></item>\r
-                       <item><description>mootools/1.2/mootools-yui-compressed.js</description></item>\r
-                       <item><description>mootools/1.3/mootools-yui-compressed.js</description></item>\r
-                       <item><description>dojo/1.5/dojo/dojo.xd.js</description></item>\r
-                       <item><description>dojo/1.6/dojo/dojo.xd.js</description></item>\r
-                       <item><description>ext-core/3.0/ext-core.js</description></item>\r
-                       <item><description>ext-core/3.1/ext-core.js</description></item>\r
-               </list>\r
-               <para>Default value is "proto_min", which loads prototype 1.7 from the server control.</para>\r
-       </summary>\r
-</member><member name="F:Rico.LoadClient.Logging">\r
-       <summary>\r
- Enable Javascript console logging? Useful for debugging. Default is false.\r
- </summary>\r
-</member><member name="F:Rico.LoadClient.HTML5">\r
-       <summary>\r
- Enable HTML5 web form elements in browsers that support them. \r
- Default is false because the quality of the HTML5 web form elements is uneven across browsers.\r
- </summary>\r
-</member><member name="F:Rico.LoadClient.Language">\r
-       <summary>\r
- Best left unset, in which case language will be set automatically based on request's HTTP_ACCEPT_LANGUAGE\r
- However, if you want to present the same locale settings to all users, then you can set this value to force the desired locale.\r
- </summary>\r
-</member><member name="F:Rico.LoadClient.LoadBaseLib">\r
-       <summary>\r
- Load base Javascript library (prototype, jQuery, etc)?\r
- Default is true.\r
- Set to false if library is being loaded another way. In this case, a BaseLib value is still required to indicate\r
- which library Rico should connect to.\r
- </summary>\r
-</member><member name="F:Rico.LoadClient.Striping">\r
-       <summary>\r
- Apply row striping to LiveGrids? Default is true. Applies only when themes are used.\r
- </summary>\r
-</member><member name="F:Rico.LoadClient.SupportedLangs">\r
-       <summary>\r
- Comma separated list of 2 letter locales that Rico supports.\r
- Do not set unless you have developed your own locale file.\r
- </summary>\r
-</member><member name="F:Rico.LoadClient.jQueryThemePath">\r
-       <summary>\r
- URL to load jQuery themes from.\r
- Default is http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/\r
- Override this value if you have a jQuery theme on your own server.\r
- </summary>\r
-</member><member name="P:Rico.LoadClient.LoadedLanguage">\r
-       <summary>\r
- Returns the 2 character string representing the Rico locale file that was actually used on the client.\r
- If there is no match between the requested languages and the available locale files, then english is used.\r
- Only available during the render phase.\r
- </summary>\r
-</member><member name="P:Rico.LoadClient.checkQueryString">\r
-       <summary>\r
- Load settings from QueryString?  true for demo, false for anything else. Default is false.\r
- </summary>\r
-</member><member name="P:Rico.LoadClient.checkWebConfig">\r
-       <summary>\r
- Load settings from web.config file? Default is false.\r
- If true, then the appSettings section of web.config will be checked for the following keys (which affect the similarly named properties):\r
- <list type="bullet">\r
-                       <item><description>rico_BaseLib</description></item>\r
-                       <item><description>rico_Language</description></item>\r
-                       <item><description>rico_jTheme</description></item>\r
-                       <item><description>rico_rTheme</description></item>\r
-                       <item><description>rico_Logging</description></item>\r
-                       <item><description>rico_HTML5</description></item>\r
-                       <item><description>rico_LoadBaseLib</description></item>\r
-                       <item><description>rico_Striping</description></item>\r
-               </list>\r
-               <para>Boolean values in web.config should be the strings "true" or "1" for true, and "false" or "0" for false.</para>\r
-       </summary>\r
-</member><member name="M:Rico.LoadClient.InitLiveGrids(System.Web.UI.HtmlTextWriter)">\r
-       <summary>\r
- Initialize all grids on the page\r
- Initialize grids with fixed # of rows first,\r
- then initialize grids with variable # of rows\r
- </summary>\r
-</member><member name="P:Rico.LoadClient.jTheme">\r
-       <summary>\r
- Set theme to one of the jQuery Themeroller themes. Default is no theme.\r
- Valid values are:\r
-   black-tie, blitzer, cupertino, dark-hive, dot-luv, eggplant, excite-bike, flick, \r
-   hot-sneaks, humanity, le-frog, mint-choc, overcast, pepper-grinder, redmond, smoothness, \r
-   south-street, start, sunny, swanky-purse, trontastic, ui-darkness, ui-lightness, vader\r
- </summary>\r
-</member><member name="P:Rico.LoadClient.rTheme">\r
-       <summary>\r
- Set theme to one of the Rico themes. Default is no theme.\r
- Valid values are:\r
-   coffee-with-milk, grayedout, greenHdg, seaglass, warmfall\r
- </summary>\r
-</member><member name="T:Rico.LoadClient">\r
-       <summary>\r
- Loads the various Javascript, CSS, and image files required to make Rico function.\r
- </summary>\r
-</member><member name="P:Rico.StyleBase.bold">\r
-       <summary>\r
- True if the text should be displayed using a bold font\r
- </summary>\r
-</member><member name="P:Rico.StyleBase.italic">\r
+</member><member name="P:Rico.StyleBase.italic">\r
        <summary>\r
  True if the text should be displayed in italics\r
  </summary>\r
        <summary>\r
  True if the text should be displayed in italics\r
  </summary>\r
@@ -558,173 +602,129 @@ Rico
        <summary>\r
  Container for a collection of Style objects\r
  </summary>\r
        <summary>\r
  Container for a collection of Style objects\r
  </summary>\r
-</member><member name="P:Rico.SimpleCol.Width">\r
-       <summary>\r
- Initial width of the column in pixels. Default is to use SimpleGrid.defaultWidth.\r
- </summary>\r
-</member><member name="F:Rico.Column.canSort">\r
-       <summary>\r
- Is the user allowed to sort the column? Default is true.\r
- </summary>\r
-       <remarks></remarks>\r
-</member><member name="F:Rico.Column.canDrag">\r
-       <summary>\r
- Is the user allowed to drag a column value? Default is false.\r
- </summary>\r
-       <remarks></remarks>\r
-</member><member name="F:Rico.Column.canFilter">\r
-       <summary>\r
- Is the user allowed to filter the column? Default is true.\r
- </summary>\r
-       <remarks></remarks>\r
-</member><member name="F:Rico.Column.control">\r
+</member><member name="F:Rico.LoadClient.ImgHeading">\r
        <summary>\r
        <summary>\r
- Javascript code to create a control object, which changes the way the column data is rendered.\r
- The disadvantage of using this approach is that the altered rendering does not get reflected in exports.\r
- A set of controls is defined in ricoLiveGridControls.js or the developer can create their own.\r
+ Background image for grid headings and window titles.\r
+ Should be left unset, as it is used only for the grayedout theme (in which case it is set automatically).\r
  </summary>\r
  </summary>\r
-       <remarks></remarks>\r
-</member><member name="F:Rico.Column.filterUI">\r
+</member><member name="F:Rico.LoadClient.BaseLib">\r
        <summary>\r
        <summary>\r
If the AutoFilter option is enabled for the grid, then filterUI will control how each column is filtered. If filterUI is:\r
The base Javascript library to load from http://ajax.googleapis.com/ajax/libs/, possible values include:\r
  <list type="bullet">\r
  <list type="bullet">\r
-                       <item><description>null or omitted, then no filter is displayed for the column.</description></item>\r
-                       <item><description>'t' - will generate a text box filter and the records being displayed are filtered as the user types. May be followed by a number to indicate the size of the text box (default size is 10). </description></item>\r
-                       <item><description>'s' - will generate a select list filter with all possible column values contained in the list. Populated using a 'select distinct' query if the grid's source is a SQL query.</description></item>\r
-                       <item><description>'m' - will generate multi-select checklist filter, with a checkbox text to each item.</description></item>\r
+                       <item><description>prototype/1.6/prototype.js</description></item>\r
+                       <item><description>prototype/1.7/prototype.js</description></item>\r
+                       <item><description>jquery/1.3/jquery.min.js</description></item>\r
+                       <item><description>jquery/1.4/jquery.min.js</description></item>\r
+                       <item><description>jquery/1.5/jquery.min.js</description></item>\r
+                       <item><description>jquery/1.6/jquery.min.js</description></item>\r
+                       <item><description>mootools/1.2/mootools-yui-compressed.js</description></item>\r
+                       <item><description>mootools/1.3/mootools-yui-compressed.js</description></item>\r
+                       <item><description>dojo/1.5/dojo/dojo.xd.js</description></item>\r
+                       <item><description>dojo/1.6/dojo/dojo.xd.js</description></item>\r
+                       <item><description>ext-core/3.0/ext-core.js</description></item>\r
+                       <item><description>ext-core/3.1/ext-core.js</description></item>\r
                </list>\r
                </list>\r
+               <para>Default value is "proto_min", which loads prototype 1.7 from the server control.</para>\r
        </summary>\r
        </summary>\r
-       <remarks></remarks>\r
-</member><member name="F:Rico.Column.filterColId">\r
-       <summary>\r
- This setting allows the filterUI to filter a different column than where it is displayed.\r
- This is particularly useful for dates, where you can show a year selection on an OrderDate date column for example,\r
- but actually have it filter a hidden column OrderYear=year(OrderDate).\r
- </summary>\r
-       <remarks></remarks>\r
-</member><member name="F:Rico.Column.ConfirmDeleteColumn">\r
-       <summary>\r
- The text content of this column will be included in delete confirmation messages.\r
- </summary>\r
-       <remarks></remarks>\r
-</member><member name="F:Rico.Column.multiplier">\r
-       <summary>\r
- If column is a number, this value can be used to multiply the database value by a factor before displaying it in the grid.\r
- Default is 1. Automatically set to 100 if DataType is percent.\r
- </summary>\r
-       <remarks></remarks>\r
-</member><member name="F:Rico.Column.decPlaces">\r
-       <summary>\r
- If column is a number, this is the number of digits displayed to the right of the decimal point. Default is 0.\r
- If DataType is dollar or euro, then decPlaces is automatically set to 2.\r
- </summary>\r
-       <remarks></remarks>\r
-</member><member name="F:Rico.Column.thouSep">\r
+</member><member name="F:Rico.LoadClient.Logging">\r
        <summary>\r
        <summary>\r
If column is a number, display the value with a thousands separator? Default is true.\r
Enable Javascript console logging? Useful for debugging. Default is false.\r
  </summary>\r
  </summary>\r
-       <remarks></remarks>\r
-</member><member name="F:Rico.Column.negSign">\r
-       <summary>\r
- Specifies how negative numbers should be displayed. Possible values:\r
- <list>\r
-                       <item><description>L=leading minus (default)</description></item>\r
-                       <item><description>T=trailing minus</description></item>\r
-                       <item><description>P=parentheses</description></item>\r
-               </list>\r
-       </summary>\r
-</member><member name="F:Rico.Column.prefix">\r
+</member><member name="F:Rico.LoadClient.HTML5">\r
        <summary>\r
        <summary>\r
- If column is a number, this string is prepended to the number before display.\r
Useful for currency symbols.\r
+ Enable HTML5 web form elements in browsers that support them. \r
Default is false because the quality of the HTML5 web form elements is uneven across browsers.\r
  </summary>\r
  </summary>\r
-</member><member name="F:Rico.Column.suffix">\r
+</member><member name="F:Rico.LoadClient.Language">\r
        <summary>\r
        <summary>\r
- If column is a number, this string is appended to the number before display.\r
Useful for percentages and temperature values. Automatically set to % if DataType is percent.\r
+ Best left unset, in which case language will be set automatically based on request's HTTP_ACCEPT_LANGUAGE\r
However, if you want to present the same locale settings to all users, then you can set this value to force the desired locale.\r
  </summary>\r
  </summary>\r
-</member><member name="F:Rico.Column.HdgStyleID">\r
+</member><member name="F:Rico.LoadClient.LoadBaseLib">\r
        <summary>\r
        <summary>\r
- Used to give the column heading a specific style.\r
- In most cases this is not necessary, as the heading will be styled according to the theme.\r
+ Load base Javascript library (prototype, jQuery, etc)?\r
+ Default is true.\r
+ Set to false if library is being loaded another way. In this case, a BaseLib value is still required to indicate\r
+ which library Rico should connect to.\r
  </summary>\r
  </summary>\r
-</member><member name="F:Rico.Column.isNullable">\r
+</member><member name="F:Rico.LoadClient.Striping">\r
        <summary>\r
        <summary>\r
- Database property - set automatically by LiveGrid.GetColumnInfoFromDb()\r
+ Apply row striping to LiveGrids? Default is true. Applies only when themes are used.\r
  </summary>\r
  </summary>\r
-</member><member name="F:Rico.Column.Writeable">\r
+</member><member name="F:Rico.LoadClient.SupportedLangs">\r
        <summary>\r
        <summary>\r
- Database property - set automatically by LiveGrid.GetColumnInfoFromDb()\r
+ Comma separated list of 2 letter locales that Rico supports.\r
+ Do not set unless you have developed your own locale file.\r
  </summary>\r
  </summary>\r
-</member><member name="F:Rico.Column.isKey">\r
+</member><member name="F:Rico.LoadClient.jQueryThemePath">\r
        <summary>\r
        <summary>\r
- Database property - set automatically by LiveGrid.GetColumnInfoFromDb()\r
+ URL to load jQuery themes from.\r
+ Default is http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/\r
+ Override this value if you have a jQuery theme on your own server.\r
  </summary>\r
  </summary>\r
-</member><member name="F:Rico.Column.Length">\r
+</member><member name="P:Rico.LoadClient.LoadedLanguage">\r
        <summary>\r
        <summary>\r
- Database property - set automatically by LiveGrid.GetColumnInfoFromDb()\r
+ Returns the 2 character string representing the Rico locale file that was actually used on the client.\r
+ If there is no match between the requested languages and the available locale files, then english is used.\r
+ Only available during the render phase.\r
  </summary>\r
  </summary>\r
-</member><member name="F:Rico.Column.TypeName">\r
+</member><member name="P:Rico.LoadClient.checkQueryString">\r
        <summary>\r
        <summary>\r
- Database property - set automatically by LiveGrid.GetColumnInfoFromDb()\r
+ Load settings from QueryString?  true for demo, false for anything else. Default is false.\r
  </summary>\r
  </summary>\r
-</member><member name="F:Rico.Column.ColGroupIdx">\r
+</member><member name="P:Rico.LoadClient.checkWebConfig">\r
        <summary>\r
        <summary>\r
- For internal use\r
- </summary>\r
-</member><member name="P:Rico.Column.Heading">\r
+ Load settings from web.config file? Default is false.\r
+ If true, then the appSettings section of web.config will be checked for the following keys (which affect the similarly named properties):\r
+ <list type="bullet">\r
+                       <item><description>rico_BaseLib</description></item>\r
+                       <item><description>rico_Language</description></item>\r
+                       <item><description>rico_jTheme</description></item>\r
+                       <item><description>rico_rTheme</description></item>\r
+                       <item><description>rico_Logging</description></item>\r
+                       <item><description>rico_HTML5</description></item>\r
+                       <item><description>rico_LoadBaseLib</description></item>\r
+                       <item><description>rico_Striping</description></item>\r
+               </list>\r
+               <para>Boolean values in web.config should be the strings "true" or "1" for true, and "false" or "0" for false.</para>\r
+       </summary>\r
+</member><member name="M:Rico.LoadClient.InitLiveGrids(System.Web.UI.HtmlTextWriter)">\r
        <summary>\r
        <summary>\r
- Text displayed in the column heading.\r
+ Initialize all grids on the page\r
+ Initialize grids with fixed # of rows first,\r
+ then initialize grids with variable # of rows\r
  </summary>\r
  </summary>\r
-</member><member name="P:Rico.Column.Width">\r
+</member><member name="P:Rico.LoadClient.jTheme">\r
        <summary>\r
        <summary>\r
- Initial width of the column in pixels. Default is to use LiveGrid.defaultWidth.\r
+ Set theme to one of the jQuery Themeroller themes. Default is no theme.\r
+ Valid values are:\r
+   black-tie, blitzer, cupertino, dark-hive, dot-luv, eggplant, excite-bike, flick, \r
+   hot-sneaks, humanity, le-frog, mint-choc, overcast, pepper-grinder, redmond, smoothness, \r
+   south-street, start, sunny, swanky-purse, trontastic, ui-darkness, ui-lightness, vader\r
  </summary>\r
  </summary>\r
-</member><member name="M:Rico.Column.NumberFormat">\r
+</member><member name="P:Rico.LoadClient.rTheme">\r
        <summary>\r
        <summary>\r
- Returns an Excel-type number format string based on decPlaces, thouSep, prefix.\r
+ Set theme to one of the Rico themes. Default is no theme.\r
+ Valid values are:\r
+   coffee-with-milk, grayedout, greenHdg, seaglass, warmfall\r
  </summary>\r
  </summary>\r
-       <returns></returns>\r
-       <remarks></remarks>\r
-</member><member name="P:Rico.Column.DataType">\r
+</member><member name="T:Rico.LoadClient">\r
        <summary>\r
        <summary>\r
Type of data stored in the column.\r
Loads the various Javascript, CSS, and image files required to make Rico function.\r
  </summary>\r
  </summary>\r
-       <value></value>\r
-       <returns></returns>\r
-       <remarks></remarks>\r
-</member><member name="T:Rico.Column">\r
+</member><member name="P:Rico.My.Resources.Resources.ResourceManager">\r
        <summary>\r
        <summary>\r
- Base class for a LiveGrid column\r
- </summary>\r
-</member><member name="F:Rico.EditCol.FormView">\r
+  Returns the cached ResourceManager instance used by this class.\r
+</summary>\r
+</member><member name="P:Rico.My.Resources.Resources.Culture">\r
        <summary>\r
        <summary>\r
-               <list type="table">\r
-                       <item><term>True</term><description>Item is shown on the entry form (default)</description></item>\r
-                       <item><term>False</term><description>Item is not shown on the form</description></item>\r
-               </list>\r
-       </summary>\r
-</member><member name="P:Rico.EditCol.EntryType">\r
+  Overrides the current thread's CurrentUICulture property for all\r
+  resource lookups using this strongly typed resource class.\r
+</summary>\r
+</member><member name="T:Rico.My.Resources.Resources">\r
        <summary>\r
        <summary>\r
- Code indicating the ui to be used for data entry\r
- <list type="table">\r
-                       <item><term>TA</term><description>Text Area</description></item>\r
-                       <item><term>R</term><description>Radio button list</description></item>\r
-                       <item><term>RL</term><description>Radio buttons via lookup (field is a foreign key)</description></item>\r
-                       <item><term>S</term><description>Select list</description></item>\r
-                       <item><term>SL</term><description>Select list via lookup (field is a foreign key)</description></item>\r
-                       <item><term>CL</term><description>Custom widget via lookup (field is a foreign key)</description></item>\r
-                       <item><term>N</term><description>Select list of distinct column values, use allowed to add new values</description></item>\r
-                       <item><term>B</term><description>Text, non-blank</description></item>\r
-                       <item><term>T</term><description>Text</description></item>\r
-                       <item><term>I</term><description>Integer</description></item>\r
-                       <item><term>F</term><description>Floating point number</description></item>\r
-                       <item><term>tinyMCE</term><description>Rich text via tinyMCE</description></item>\r
-                       <item><term>D</term><description>Date</description></item>\r
-                       <item><term>TS</term><description>Time stamp</description></item>\r
-                       <item><term>H</term><description>Hidden</description></item>\r
-               </list>\r
-       </summary>\r
+  A strongly-typed resource class, for looking up localized strings, etc.\r
+</summary>\r
 </member><member name="T:Rico.SimpleGrid">\r
        <summary>\r
  Class to define a SimpleGrid\r
 </member><member name="T:Rico.SimpleGrid">\r
        <summary>\r
  Class to define a SimpleGrid\r
index 1ac0149..16a0a67 100644 (file)
@@ -72,7 +72,8 @@ Base Library: <script type='text/javascript'>document.write(Rico.Lib+' '+Rico.Li
 <p>Then try moving your cursor over each photo...\r
 </form></div>\r
 \r
 <p>Then try moving your cursor over each photo...\r
 </form></div>\r
 \r
-<Rico:LiveGrid runat='server' id='photos' prefetchBuffer='false' DataRowHt='80px' DataWrapText='true' dataProvider="'flickrPhotos.aspx'">\r
+<Rico:LiveGrid runat='server' id='photos' prefetchBuffer='false' DataRowHt='80px' dataProvider="'flickrPhotos.aspx'" BufferType="AjaxLoadOnce">\r
+  <Rico:Style runat='server' StyleId='Default' Wrap='true' />\r
   <Rico:Column runat='server' heading='Photo' width='90' control='new Rico.TableColumn.image()' />\r
   <Rico:Column runat='server' heading='Title' width='100' />\r
   <Rico:Column runat='server' heading='Owner' width='100' />\r
   <Rico:Column runat='server' heading='Photo' width='90' control='new Rico.TableColumn.image()' />\r
   <Rico:Column runat='server' heading='Title' width='100' />\r
   <Rico:Column runat='server' heading='Owner' width='100' />\r
index 76dc683..87e693f 100644 (file)
@@ -15,7 +15,7 @@ if ($checkQueryString) {
   $ricoLogging=isset($_GET["log"]);\r
 } else {\r
   // set your production values here\r
   $ricoLogging=isset($_GET["log"]);\r
 } else {\r
   // set your production values here\r
-  $ricoLib="prototype";         // base library\r
+  $ricoLib="proto_min.js";         // base library\r
   $ricoTheme="j-ui-lightness";  // jquery themes start with j-, rico themes start with r-\r
   $ricoLogging=false;\r
 }\r
   $ricoTheme="j-ui-lightness";  // jquery themes start with j-, rico themes start with r-\r
   $ricoLogging=false;\r
 }\r
@@ -24,18 +24,42 @@ SetConfig();
 LoadLib($ricoLib, $LoadBaseLib);\r
 setLang();\r
 LoadTheme($ricoTheme);\r
 LoadLib($ricoLib, $LoadBaseLib);\r
 setLang();\r
 LoadTheme($ricoTheme);\r
+WriteStyles();\r
+\r
+\r
+function WriteStyles() {\r
+  global $imgDir,$ricoTheme;\r
+  echo "<style type='text/css'>\n";\r
+  //For Each ctrl As Control In Page.Controls\r
+  //    If TypeOf (ctrl) Is GridBase Then writer.Write(CType(ctrl, GridBase).GridRules())\r
+  //    If TypeOf (ctrl) Is LiveGrid Then writer.Write(CType(ctrl, LiveGrid).ColumnRules())\r
+  //Next\r
+  if ($ricoTheme=="r-grayedout") {\r
+      echo ".Rico_accTitle, .ricoTitle, table.ricoLiveGrid thead th, table.ricoLiveGrid thead td, tr.ricoLG_hdg td, tr.ricoLG_hdg th {\n";\r
+      echo "  background-position: left center;\n";\r
+      echo "  background-repeat: repeat-x;\n";\r
+      echo "  background-image: url('" . $imgDir . "grayedout.gif');\n";\r
+      echo "}\n";\r
+  }\r
+  echo ".ricoLG_Resize {\n";\r
+  echo "  background-repeat: repeat;\n";\r
+  echo "  background-image: url('" . $imgDir . "resize.gif');\n";\r
+  echo "}\n";\r
+  echo ".rico-icon {\n";\r
+  echo "  background-repeat: no-repeat;\n";\r
+  echo "  background-image: url('" . $imgDir . "ricoIcons.gif');\n";\r
+  echo "}\n";\r
+  echo "</style>\n";\r
+}\r
 \r
 \r
 // initialize Rico\r
 function SetConfig() {\r
 \r
 \r
 // initialize Rico\r
 function SetConfig() {\r
-  global $jsDir,$cssDir,$imgDir,$ricoLogging;\r
+  global $ricoLogging;\r
   echo "\n<script type='text/javascript'>\n";\r
   echo "Rico_CONFIG = {\n";\r
   if ($ricoLogging) echo "enableLogging: true,\n";\r
   echo "\n<script type='text/javascript'>\n";\r
   echo "Rico_CONFIG = {\n";\r
   if ($ricoLogging) echo "enableLogging: true,\n";\r
-  echo "jsDir: '" . $jsDir . "',\n";\r
-  echo "imgResize: '" . $imgDir . "resize.gif',\n";\r
-  echo "imgIcons: '" . $imgDir . "ricoIcons.gif'\n";\r
-  echo "};";\r
+  echo "};\n";\r
   echo "</script>\n";\r
 }\r
 \r
   echo "</script>\n";\r
 }\r
 \r
@@ -68,7 +92,7 @@ function setLang() {
     if ($lang2=='en') break; // already included\r
     $fname=$transDir."ricoLocale_".$lang2.".js";\r
     if (file_exists($fname)) {\r
     if ($lang2=='en') break; // already included\r
     $fname=$transDir."ricoLocale_".$lang2.".js";\r
     if (file_exists($fname)) {\r
-      echo "<script src='".$fname."' type='text/javascript'></script>";\r
+      echo "<script src='".$fname."' type='text/javascript'></script>\n";\r
       break;\r
     } \r
   }\r
       break;\r
     } \r
   }\r
@@ -85,14 +109,14 @@ function LoadTheme($theme) {
   switch ($prefix) {\r
     case 'j':\r
       requireRicoJS("Themeroller");\r
   switch ($prefix) {\r
     case 'j':\r
       requireRicoJS("Themeroller");\r
-      echo "<link type='text/css' rel='Stylesheet' href='" . $jQuery_theme_path . $theme."/jquery-ui.css' />";\r
+      echo "<link type='text/css' rel='Stylesheet' href='" . $jQuery_theme_path . $theme."/jquery-ui.css' />\n";\r
       break;\r
     case 'r':\r
       requireRicoCSS($theme);\r
       break;\r
   }\r
   if ($grid_striping) {\r
       break;\r
     case 'r':\r
       requireRicoCSS($theme);\r
       break;\r
   }\r
   if ($grid_striping) {\r
-    echo "<link type='text/css' rel='stylesheet' href='".$cssDir."striping_".$theme.".css' />";\r
+    echo "<link type='text/css' rel='stylesheet' href='".$cssDir."striping_".$theme.".css' />\n";\r
   }\r
 }\r
 \r
   }\r
 }\r
 \r
index c4071e1..6b84cb5 100644 (file)
@@ -22,7 +22,7 @@ Rico.onLoad( function() {
     columnSpecs   : [{control:imgctl,width:90},,,\r
                      {type:'datetime'},{width:200}]\r
   };\r
     columnSpecs   : [{control:imgctl,width:90},,,\r
                      {type:'datetime'},{width:200}]\r
   };\r
-  photoBuffer=new Rico.Buffer.AjaxXML('flickrPhotos.php');\r
+  photoBuffer=new Rico.Buffer.AjaxLoadOnce('flickrPhotos.php');\r
   photoGrid=new Rico.LiveGrid ('photogrid', photoBuffer, opts);\r
   photoGrid.menu=new Rico.GridMenu();\r
   \r
   photoGrid=new Rico.LiveGrid ('photogrid', photoBuffer, opts);\r
   photoGrid.menu=new Rico.GridMenu();\r
   \r
index 9d9e3ce..9b2ab2e 100644 (file)
@@ -21,7 +21,6 @@ Rico.onLoad( function() {
     columnSpecs   : [{width:200},'specQty','specQty','specQty','specQty']\r
   };\r
   ex1=new Rico.SimpleGrid ('ex1', opts);\r
     columnSpecs   : [{width:200},'specQty','specQty','specQty','specQty']\r
   };\r
   ex1=new Rico.SimpleGrid ('ex1', opts);\r
-  if (!Rico.isIE) document.getElementById('owc').disabled=true;\r
 });\r
 \r
 function ExportGridClient(ExportType) {\r
 });\r
 \r
 function ExportGridClient(ExportType) {\r
@@ -87,7 +86,6 @@ require "info.php";
 \r
 <div>\r
 <button onclick="ExportGridClient('plain')">Export from client<br>to HTML Table</button>\r
 \r
 <div>\r
 <button onclick="ExportGridClient('plain')">Export from client<br>to HTML Table</button>\r
-<button onclick="ExportGridClient('owc')" id="owc">Export from client<br>to OWC spreadsheet</button>\r
 <button onclick="ExportGridServer('xl')">Export from server<br>to Excel</button>\r
 <button onclick="ExportGridServer('csv')">Export from server<br>to CSV</button>\r
 </div>\r
 <button onclick="ExportGridServer('xl')">Export from server<br>to Excel</button>\r
 <button onclick="ExportGridServer('csv')">Export from server<br>to CSV</button>\r
 </div>\r
index 1100f69..4f8e9a5 100644 (file)
@@ -23,6 +23,7 @@ Public imgDir     ' directory containing Rico's image files
 Public imgHeading ' background image for grid headings and window titles, used in grayedout theme\r
 Public BaseLib    ' base library - prototype, jquery, etc\r
 Public ricoLogging       ' enable console logging?\r
 Public imgHeading ' background image for grid headings and window titles, used in grayedout theme\r
 Public BaseLib    ' base library - prototype, jquery, etc\r
 Public ricoLogging       ' enable console logging?\r
+Public HTML5       ' enable console logging?\r
 Public grid_striping     ' apply row striping to LiveGrids?\r
 Public LoadBaseLib       ' load base Javascript library (prototype, jQuery, etc)?\r
 Public jQuery_theme_path ' url to jqueryui themes\r
 Public grid_striping     ' apply row striping to LiveGrids?\r
 Public LoadBaseLib       ' load base Javascript library (prototype, jQuery, etc)?\r
 Public jQuery_theme_path ' url to jqueryui themes\r
@@ -34,6 +35,7 @@ Private Sub Class_Initialize
   BaseLib="proto_min.js"         ' default base library\r
   theme=""\r
   ricoLogging=false\r
   BaseLib="proto_min.js"         ' default base library\r
   theme=""\r
   ricoLogging=false\r
+  HTML5=false\r
   grid_striping = true\r
   LoadBaseLib = true\r
   SupportedLangs = "de,es,fr,it,ja,ko,pt,ru,uk,zh"\r
   grid_striping = true\r
   LoadBaseLib = true\r
   SupportedLangs = "de,es,fr,it,ja,ko,pt,ru,uk,zh"\r
@@ -81,7 +83,14 @@ end Sub
 \r
 ' This is the main method, which creates the Javscript and CSS links\r
 Public Sub CreateLinks()\r
 \r
 ' This is the main method, which creates the Javscript and CSS links\r
 Public Sub CreateLinks()\r
-  SetConfig\r
+  Dim ImgUrl,lang,lang2,i\r
+  Dim prefix,themeFile\r
+  Response.Write vbLf & "<script type='text/javascript'>"\r
+  Response.Write vbLf & "Rico_CONFIG = {"\r
+  if ricoLogging then Response.Write vbLf & "enableLogging: true,"\r
+  if HTML5 then Response.Write vbLf & "enableHTML5: true,"\r
+  Response.Write vbLf & "};"\r
+  Response.Write vbLf & "</script>"\r
   if LoadBaseLib then\r
     if InStr(baseLib,"/") > 0 then\r
       Response.Write vbLf & "<script src='http://ajax.googleapis.com/ajax/libs/" & baseLib & "' type='text/javascript'></script>"\r
   if LoadBaseLib then\r
     if InStr(baseLib,"/") > 0 then\r
       Response.Write vbLf & "<script src='http://ajax.googleapis.com/ajax/libs/" & baseLib & "' type='text/javascript'></script>"\r
@@ -91,31 +100,6 @@ Public Sub CreateLinks()
   end if\r
   requireRicoJS "2" & left(baseLib,3)\r
   requireRicoJS "_min"\r
   end if\r
   requireRicoJS "2" & left(baseLib,3)\r
   requireRicoJS "_min"\r
-  setLang\r
-  requireRicoCSS "rico"\r
-  if theme<>"" then LoadTheme\r
-End sub\r
-\r
-\r
-' Create Rico client initialization object\r
-Private sub SetConfig()\r
-  Response.Write vbLf & "<script type='text/javascript'>"\r
-  Response.Write vbLf & "Rico_CONFIG = {"\r
-  if ricoLogging then Response.Write vbLf & "enableLogging: true,"\r
-  if not IsEmpty(imgHeading) then Response.Write vbLf & "imgHeading: '" & imgDir & imgHeading & "',"\r
-  Response.Write vbLf & "imgResize: '" & imgDir & "resize.gif',"\r
-  Response.Write vbLf & "imgIcons: '" & imgDir & "ricoIcons.gif'"\r
-  Response.Write vbLf & "};"\r
-  Response.Write vbLf & "</script>"\r
-end sub\r
-\r
-\r
-' -------------------------------------------------------------\r
-' Check languages accepted by browser\r
-' and see if there is a match\r
-' -------------------------------------------------------------\r
-sub setLang()\r
-  dim fso,lang,lang2,fname,i\r
 \r
   lang=lcase(Request.ServerVariables("HTTP_ACCEPT_LANGUAGE"))\r
   arLang=split(lang,",")\r
 \r
   lang=lcase(Request.ServerVariables("HTTP_ACCEPT_LANGUAGE"))\r
   arLang=split(lang,",")\r
@@ -127,25 +111,48 @@ sub setLang()
       exit for\r
     end if\r
   next\r
       exit for\r
     end if\r
   next\r
-end sub\r
+  requireRicoCSS "rico"\r
 \r
 \r
+  if theme<>"" then\r
+    prefix=left(theme,1)\r
+    themeFile=mid(theme,3)\r
+    select case prefix\r
+      case "j":\r
+        requireRicoJS "Themeroller"\r
+        Response.Write vbLf & "<link type='text/css' rel='Stylesheet' href='" & jQuery_theme_path & themeFile & "/jquery-ui.css' />"\r
+      case "r":\r
+        requireRicoCSS themeFile\r
+    end select\r
+    if grid_striping then Response.Write vbLf & "<link type='text/css' rel='stylesheet' href='" & cssDir & "striping_" & themeFile & ".css' />"\r
+  end if\r
 \r
 \r
-' set theme\r
-' "j-ui-lightness" for a Themeroller theme\r
-' "r-greenHdg" for a native Rico theme\r
-Private sub LoadTheme()\r
-  dim prefix,themeFile\r
-  prefix=left(theme,1)\r
-  themeFile=mid(theme,3)\r
-  select case prefix\r
-    case "j":\r
-      requireRicoJS "Themeroller"\r
-      Response.Write vbLf & "<link type='text/css' rel='Stylesheet' href='" & jQuery_theme_path & themeFile & "/jquery-ui.css' />"\r
-    case "r":\r
-      requireRicoCSS themeFile\r
-  end select\r
-  if grid_striping then Response.Write vbLf & "<link type='text/css' rel='stylesheet' href='" & cssDir & "striping_" & themeFile & ".css' />"\r
-end sub\r
+  Response.Write vbLf & "<style type='text/css'>"\r
+  'For Each ctrl As Control In Page.Controls\r
+  '    If TypeOf (ctrl) Is GridBase Then writer.Write(CType(ctrl, GridBase).GridRules())\r
+  '    If TypeOf (ctrl) Is LiveGrid Then writer.Write(CType(ctrl, LiveGrid).ColumnRules())\r
+  'Next\r
+  If Not IsEmpty(ImgHeading) Then\r
+      If InStr(ImgHeading,".") > 0 Or InStr(ImgHeading,"/") > 0 Then\r
+          ImgUrl = ImgHeading\r
+      Else\r
+          ImgUrl = imgDir & ImgHeading\r
+      End If\r
+      Response.Write vbLf & ".Rico_accTitle, .ricoTitle, table.ricoLiveGrid thead th, table.ricoLiveGrid thead td, tr.ricoLG_hdg td, tr.ricoLG_hdg th {"\r
+      Response.Write vbLf & "  background-position: left center;"\r
+      Response.Write vbLf & "  background-repeat: repeat-x;"\r
+      Response.Write vbLf & "  background-image: url('" & ImgUrl & "');"\r
+      Response.Write vbLf & "}"\r
+  End If\r
+  Response.Write vbLf & ".ricoLG_Resize {"\r
+  Response.Write vbLf & "  background-repeat: repeat;"\r
+  Response.Write vbLf & "  background-image: url('" & imgDir & "resize.gif');"\r
+  Response.Write vbLf & "}"\r
+  Response.Write vbLf & ".rico-icon {"\r
+  Response.Write vbLf & "  background-repeat: no-repeat;"\r
+  Response.Write vbLf & "  background-image: url('" & imgDir & "ricoIcons.gif');"\r
+  Response.Write vbLf & "}"\r
+  Response.Write vbLf & "</style>"\r
+End sub\r
 \r
 \r
 Public sub requireRicoJS(filename)\r
 \r
 \r
 Public sub requireRicoJS(filename)\r
index 8f7a357..a47efe4 100644 (file)
@@ -479,7 +479,7 @@ a.RicoButtonAnchorNative:hover {
   display:block;\r
 }\r
 \r
   display:block;\r
 }\r
 \r
-.ricoTreeContainer, .ricoTree {\r
+.ricoTreeContainer {\r
   font-size:70%;\r
   white-space:nowrap;\r
 }\r
   font-size:70%;\r
   white-space:nowrap;\r
 }\r