1) More themes of higher quality. This was achieved by making Rico compatible
with jQuery Themeroller. Even better, the use of Themeroller themes does not require
-the use of jQuery.
+the use of jQuery. LiveGrid striping is defined for all of the Rico AND Themeroller
+themes.
2) Break Rico's dependence on Prototype. Rico can still run with Prototype,
but it can also run with jQuery, MooTools, dojo, ext (core), or Glow.
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
+ if grid_striping then Response.Write vbLf & "<link type='text/css' rel='stylesheet' href='" & cssDir & "striping_" & themeFile & ".css' />"\r
end sub\r
\r
\r
case "r":\r
requireRicoCSS(writer, themeFile)\r
end select\r
- if grid_striping then writer.Write(vbLf & "<link type='text/css' rel='stylesheet' href='" & cssDir & "striping/" & themeFile & ".css' />")\r
+ if grid_striping then writer.Write(vbLf & "<link type='text/css' rel='stylesheet' href='" & cssDir & "striping_" & themeFile & ".css' />")\r
end sub\r
\r
\r
this.requireRicoCSS(theme);\r
break;\r
}\r
- if (this.grid_striping) document.write("<link type='text/css' rel='stylesheet' href='"+this.cssDir+"striping/"+theme+".css' />");\r
+ if (this.grid_striping) document.write("<link type='text/css' rel='stylesheet' href='"+this.cssDir+"striping_"+theme+".css' />");\r
},\r
\r
requireRicoJS: function(filename) {\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' />";\r
}\r
}\r
\r
dim sHidden as string = trim(Request.QueryString("hidden"))\r
if not IsNumeric(sRequestOffset) then sRequestOffset="0"\r
\r
+ if sRequestOffset<>"" then sRequestOffset=Regex.Replace( sRequestOffset, "[^0-9-]", "" )\r
if sRequestOffset<>"" then offset=CLng(sRequestOffset)\r
+ if sRequestSize<>"" then sRequestSize=Regex.Replace( sRequestSize, "[^0-9-]", "" )\r
if sRequestSize<>"" then numrows=CLng(sRequestSize)\r
if sDistinct<>"" then distinctCol=CLng(sDistinct)\r
if sEdit<>"" then editCol=CLng(sEdit)\r
SendHdg=true\r
case "xl":\r
Response.ContentType="application/vnd.ms-excel"\r
- writer.WriteLine("<html><head></head><body>")\r
- closetags="</body></html>"\r
- RowsStart=vbLf & "<table>"\r
- RowsEnd=vbLf & "</table>"\r
+ Response.AddHeader("Content-Disposition", "attachment; filename=" & RequestId & ".xml")\r
+ writer.WriteLine("<?xml version='1.0' encoding='iso-8859-1'?>")\r
+ writer.WriteLine("<?mso-application progid='Excel.Sheet'?>")\r
+ writer.WriteLine("<s:Workbook xmlns:x='urn:schemas-microsoft-com:office:excel' xmlns:o='urn:schemas-microsoft-com:office:office' xmlns:s='urn:schemas-microsoft-com:office:spreadsheet'>")\r
+ writer.WriteLine(" <s:Styles>")\r
+ writer.WriteLine(" <s:Style s:ID='sDate'><s:NumberFormat s:Format='Short Date' /></s:Style>")\r
+ writer.WriteLine(" </s:Styles>")\r
+ writer.WriteLine(" <s:Worksheet s:Name='" & RequestId & "'>")\r
+ closetags="</s:Worksheet></s:Workbook>"\r
+ RowsStart=vbLf & "<s:Table>"\r
+ RowsEnd=vbLf & "</s:Table>"\r
+\r
gettotal=false\r
sendDebugMsgs=false\r
- SendHdg=true\r
+ AllRowsMax=65534 ' allow 1 row for heading\r
case "json":\r
Response.ContentType="application/json"\r
writer.Write("{" & vbLf & """id"":""" & RequestId & """")\r
\r
' returns the total number of rows produced by the query (or -1 if unknown)\r
Protected Function RenderQueryRows(writer as HTMLTextWriter) As Integer\r
- dim rowcnt as integer, fldNum as integer, dbDate as DateTime, strFieldItem as String\r
+ dim rowcnt as integer, fldNum as integer, dbDate as DateTime, strFieldItem as String, fldType as String, fldAttr as String\r
dim firstCol as Integer=0, limitQuery as Boolean=false, eof as Boolean=false, n as String\r
dim rdr as object\r
dim totcnt as Integer=0\r
oParse.ParseSelect(sqlText)\r
ApplyQStringParms()\r
sqlText=oParse.UnparseSelect()\r
- elseif numrows < 0 then\r
+ elseif numrows < 0 or offset=0 then\r
ApplyQStringParms()\r
sqlText=oParse.UnparseSelectSkip(HiddenCols)\r
else\r
\r
rowcnt=0\r
if numrows < 0 then numrows=AllRowsMax\r
- if fmt="json" then\r
- if SendHdg then\r
- writer.Write(vbLf & "[")\r
- for fldNum=firstCol to rdr.FieldCount -1\r
- if IsNothing(oParse) then\r
- n=Nothing\r
- else\r
- n=oParse.Headings(fldNum-firstCol)\r
- end if\r
- if IsNothing(n) then n=rdr.GetName(fldNum)\r
- writer.Write("""" & escapeJSON(n) & """")\r
- next\r
- writer.Write("]")\r
- end if\r
- while (rowcnt < numrows) and (not eof)\r
- if rdr.Read() then\r
- if rowcnt > 0 or SendHdg then writer.Write(",")\r
+ select case fmt\r
+\r
+ case "json":\r
+ if SendHdg then\r
writer.Write(vbLf & "[")\r
- for fldNum = firstCol to rdr.FieldCount -1\r
- strFieldItem = ""\r
- if not rdr.IsDBNull(fldNum) then\r
- select case rdr.GetFieldType(fldNum).Name\r
- case "DateTime":\r
- dbDate=rdr.GetDateTime(fldNum)\r
- strFieldItem = replace(dbDate.ToString("s"),"T"," ") ' convert to ISO-8601 format\r
- case else:\r
- strFieldItem = escapeJSON(rdr.GetValue(fldNum))\r
- end select\r
+ for fldNum=firstCol to rdr.FieldCount -1\r
+ if IsNothing(oParse) then\r
+ n=Nothing\r
+ else\r
+ n=oParse.Headings(fldNum-firstCol)\r
end if\r
- if fldNum > firstCol then writer.Write(",")\r
- writer.Write("""" & strFieldItem & """")\r
+ if IsNothing(n) then n=rdr.GetName(fldNum)\r
+ writer.Write("""" & escapeJSON(n) & """")\r
next\r
writer.Write("]")\r
- rowcnt += 1\r
- else\r
- eof=true\r
end if\r
- end while\r
- else\r
- if SendHdg then\r
- writer.Write(vbLf & "<tr>")\r
- for fldNum=firstCol to rdr.FieldCount -1\r
+ while (rowcnt < numrows) and (not eof)\r
+ if rdr.Read() then\r
+ if rowcnt > 0 or SendHdg then writer.Write(",")\r
+ writer.Write(vbLf & "[")\r
+ for fldNum = firstCol to rdr.FieldCount -1\r
+ strFieldItem = ""\r
+ if not rdr.IsDBNull(fldNum) then\r
+ select case rdr.GetFieldType(fldNum).Name\r
+ case "DateTime":\r
+ dbDate=rdr.GetDateTime(fldNum)\r
+ strFieldItem = replace(dbDate.ToString("s"),"T"," ") ' convert to ISO-8601 format\r
+ case else:\r
+ strFieldItem = escapeJSON(rdr.GetValue(fldNum))\r
+ end select\r
+ end if\r
+ if fldNum > firstCol then writer.Write(",")\r
+ writer.Write("""" & strFieldItem & """")\r
+ next\r
+ writer.Write("]")\r
+ rowcnt += 1\r
+ else\r
+ eof=true\r
+ end if\r
+ end while\r
+\r
+ case "xl":\r
+ writer.Write(vbLf & "<s:Row>")\r
+ for fldNum=firstCol to rdr.FieldCount-1\r
if IsNothing(oParse) then\r
n=Nothing\r
else\r
n=oParse.Headings(fldNum-firstCol)\r
end if\r
if IsNothing(n) then n=rdr.GetName(fldNum)\r
- writer.Write("<td>" & server.HTMLEncode(n) & "</td>")\r
+ writer.Write("<s:Cell><s:Data s:Type='String'>" & server.HTMLEncode(n) & "</s:Data></s:Cell>")\r
next\r
- writer.Write("</tr>")\r
- end if\r
- while (rowcnt < numrows) and (not eof)\r
- if rdr.Read() then\r
- rowcnt += 1\r
- writer.Write("<tr>")\r
- for fldNum = firstCol to rdr.FieldCount -1\r
- strFieldItem = ""\r
- if not rdr.IsDBNull(fldNum) then\r
- select case rdr.GetFieldType(fldNum).Name\r
- case "DateTime":\r
- dbDate=rdr.GetDateTime(fldNum)\r
- strFieldItem = replace(dbDate.ToString("s"),"T"," ") ' convert to ISO-8601 format\r
- case else:\r
- strFieldItem = server.HTMLEncode(rdr.GetValue(fldNum))\r
- end select\r
+ writer.Write("</s:Row>")\r
+ while (rowcnt < numrows) and (not eof)\r
+ if rdr.Read() then\r
+ rowcnt += 1\r
+ writer.Write("<s:Row>")\r
+ for fldNum = firstCol to rdr.FieldCount -1\r
+ strFieldItem = ""\r
+ fldAttr = ""\r
+ fldType = "String"\r
+ if not rdr.IsDBNull(fldNum) then\r
+ select case UCase(Left(rdr.GetFieldType(fldNum).Name, 3))\r
+ case "DAT":\r
+ dbDate=rdr.GetDateTime(fldNum)\r
+ strFieldItem = dbDate.ToString("s") ' convert to ISO-8601 format\r
+ fldType = "DateTime"\r
+ fldAttr = " s:StyleID='sDate'"\r
+ case "INT", "DOU", "DEC":\r
+ strFieldItem = CStr(rdr.GetValue(fldNum))\r
+ fldType = "Number"\r
+ case else:\r
+ strFieldItem = server.HTMLEncode(rdr.GetValue(fldNum))\r
+ end select\r
+ end if\r
+ writer.Write("<s:Cell" & fldAttr & "><s:Data s:Type='" & fldType & "'>" & strFieldItem & "</s:Data></s:Cell>")\r
+ next\r
+ writer.Write("</s:Row>")\r
+ else\r
+ eof=true\r
+ end if\r
+ end while\r
+\r
+ case else:\r
+ if SendHdg then\r
+ writer.Write(vbLf & "<tr>")\r
+ for fldNum=firstCol to rdr.FieldCount -1\r
+ if IsNothing(oParse) then\r
+ n=Nothing\r
+ else\r
+ n=oParse.Headings(fldNum-firstCol)\r
end if\r
- writer.Write("<td>" & strFieldItem & "</td>")\r
+ if IsNothing(n) then n=rdr.GetName(fldNum)\r
+ writer.Write("<td>" & server.HTMLEncode(n) & "</td>")\r
next\r
writer.Write("</tr>")\r
- else\r
- eof=true\r
end if\r
- end while\r
- end if\r
+ while (rowcnt < numrows) and (not eof)\r
+ if rdr.Read() then\r
+ rowcnt += 1\r
+ writer.Write("<tr>")\r
+ for fldNum = firstCol to rdr.FieldCount -1\r
+ strFieldItem = ""\r
+ if not rdr.IsDBNull(fldNum) then\r
+ select case rdr.GetFieldType(fldNum).Name\r
+ case "DateTime":\r
+ dbDate=rdr.GetDateTime(fldNum)\r
+ strFieldItem = replace(dbDate.ToString("s"),"T"," ") ' convert to ISO-8601 format\r
+ case else:\r
+ strFieldItem = server.HTMLEncode(rdr.GetValue(fldNum))\r
+ end select\r
+ end if\r
+ writer.Write("<td>" & strFieldItem & "</td>")\r
+ next\r
+ writer.Write("</tr>")\r
+ else\r
+ eof=true\r
+ end if\r
+ end while\r
+ end select\r
totcnt += rowcnt\r
\r
if not eof and gettotal then\r
+++ /dev/null
-.ricoLG_oddRow { background-color: #FFF; }\r
+++ /dev/null
-div.ricoLG_evenRow { background-color: #ffffff; }\r
-div.ricoLG_oddRow { background-color: #F9F9F9; }\r
-.ricoLG_bottom div.ui-state-hover {\r
- border-left: none;\r
- border-top: none;\r
- border-right: none;\r
-}\r
+++ /dev/null
-.ricoLG_bottom div.ricoLG_oddRow {\r
- background-color:#F7F4EE;\r
- border-top: 1px solid #EBE5D9;\r
- border-bottom: 1px solid #EBE5D9;\r
-}\r
-.ricoLG_bottom div.ricoLG_evenRow {\r
- border-top: 1px solid #FFF;\r
- border-bottom: 1px solid #FFF;\r
-}\r
+++ /dev/null
-div.ricoLG_evenRow { background-color: #ffffff; }\r
-div.ricoLG_oddRow { background-color: #F9FAFB; }\r
-.ricoLG_bottom div.ui-state-hover {\r
- border-left: none;\r
- border-top: none;\r
- border-right: none;\r
-}\r
+++ /dev/null
-\r
-.ricoLG_oddRow { color: #64A7C4; }\r
-/*\r
-.ricoLG_oddRow { background-color: #474747; }\r
-*/\r
+++ /dev/null
-.ricoLG_oddRow { background-color: #0A3561; }\r
+++ /dev/null
-div.ricoLG_evenRow { background-color: #5C5662; }\r
-div.ricoLG_oddRow { background-color: #3D3644; }\r
+++ /dev/null
-div.ricoLG_evenRow { background-color: #ffffff; }\r
-div.ricoLG_oddRow { background-color: #eeeeee; }\r
+++ /dev/null
-.ricoLG_oddRow { background-color: #F6F6F6; }\r
+++ /dev/null
-.ricoLG_oddRow {\r
- background-color: #EEE;\r
-}\r
+++ /dev/null
-.ricoLG_evenRow { }\r
-.ricoLG_oddRow { background-color: #EEE; }\r
+++ /dev/null
-div.ricoLG_evenRow { background-color: #ffffff; }\r
-div.ricoLG_oddRow { background-color: #93C3CD; }\r
-.ricoLG_bottom div.ui-state-hover {\r
- border-left: none;\r
- border-top: none;\r
- border-right: none;\r
-}\r
+++ /dev/null
-div.ricoLG_evenRow { background-color: #ffffff; }\r
-div.ricoLG_oddRow { background-color: #f8f4f0; }\r
-.ricoLG_bottom div.ui-state-hover {\r
- border-left: none;\r
- border-top: none;\r
- border-right: none;\r
-}\r
+++ /dev/null
-.ricoLG_oddRow { background-color: #619A35; }\r
+++ /dev/null
-div.ricoLG_evenRow { background-color: #977C68; }\r
-div.ricoLG_oddRow { background-color: #685648; }\r
+++ /dev/null
-div.ricoLG_evenRow { background-color: #C9C9C9; }\r
-div.ricoLG_oddRow { background-color: #D9D9D9; }\r
-.ricoLG_bottom div.ui-state-hover {\r
- border-left: none;\r
- border-top: none;\r
- border-right: none;\r
-}\r
+++ /dev/null
-.ricoLG_oddRow { background:#F8F7F6 url(http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/pepper-grinder/images/ui-bg_fine-grain_10_f8f7f6_60x60.png) repeat scroll 50% 50%; }\r
+++ /dev/null
-div.ricoLG_evenRow { background-color: #ffffff; }\r
-div.ricoLG_oddRow { background-color: #EEF5FB; }\r
-.ricoLG_bottom div.ui-state-hover {\r
- border-left: none;\r
- border-top: none;\r
- border-right: none;\r
-}\r
+++ /dev/null
-.ricoLG_oddRow { background: #DBE6DD; }\r
+++ /dev/null
-div.ricoLG_evenRow { background-color: #ffffff; }\r
-div.ricoLG_oddRow { background-color: #ececec; }\r
-.ricoLG_bottom div.ui-state-hover {\r
- border-left: none;\r
- border-top: none;\r
- border-right: none;\r
-}\r
+++ /dev/null
-div.ricoLG_evenRow { background-color: #FCFCF9; }\r
-div.ricoLG_oddRow { background-color: #F5F3E5; }\r
+++ /dev/null
-div.ricoLG_evenRow { background-color: #ffffff; }\r
-div.ricoLG_oddRow { background-color: #CEE6F0; }\r
-.ricoLG_bottom div.ui-state-hover {\r
- border-left: none;\r
- border-top: none;\r
- border-right: none;\r
-}\r
+++ /dev/null
-div.ricoLG_evenRow { background-color: #FEF8E4; }\r
-div.ricoLG_oddRow { background-color: #FEEEBD; }\r
-.ricoLG_bottom div.ui-state-hover {\r
- border-left: none;\r
- border-top: none;\r
- border-right: none;\r
-}\r
+++ /dev/null
-div.ricoLG_evenRow { background-color: #000000; }\r
-div.ricoLG_oddRow { background-color: #2c2c2c; }\r
+++ /dev/null
-div.ricoLG_evenRow { background-color: #ffffff; }\r
-div.ricoLG_oddRow { background-color: #eeeeee; }\r
-.ricoLG_bottom div.ui-state-hover {\r
- border-left: none;\r
- border-top: none;\r
- border-right: none;\r
-}\r
+++ /dev/null
-div.ricoLG_evenRow { background-color: #000000; }\r
-div.ricoLG_oddRow { background-color: #4c4c4c; }\r
+++ /dev/null
-.ricoLG_oddRow {\r
- background-color: #fffad0;\r
- color: #101011;\r
-}\r
-\r
--- /dev/null
+.ricoLG_oddRow { background-color: #FFF; }\r
--- /dev/null
+div.ricoLG_evenRow { background-color: #ffffff; }\r
+div.ricoLG_oddRow { background-color: #F9F9F9; }\r
+.ricoLG_bottom div.ui-state-hover {\r
+ border-left: none;\r
+ border-top: none;\r
+ border-right: none;\r
+}\r
--- /dev/null
+.ricoLG_bottom div.ricoLG_oddRow {\r
+ background-color:#F7F4EE;\r
+ border-top: 1px solid #EBE5D9;\r
+ border-bottom: 1px solid #EBE5D9;\r
+}\r
+.ricoLG_bottom div.ricoLG_evenRow {\r
+ border-top: 1px solid #FFF;\r
+ border-bottom: 1px solid #FFF;\r
+}\r
--- /dev/null
+div.ricoLG_evenRow { background-color: #ffffff; }\r
+div.ricoLG_oddRow { background-color: #F9FAFB; }\r
+.ricoLG_bottom div.ui-state-hover {\r
+ border-left: none;\r
+ border-top: none;\r
+ border-right: none;\r
+}\r
--- /dev/null
+\r
+.ricoLG_oddRow { color: #64A7C4; }\r
+/*\r
+.ricoLG_oddRow { background-color: #474747; }\r
+*/\r
--- /dev/null
+.ricoLG_oddRow { background-color: #0A3561; }\r
--- /dev/null
+div.ricoLG_evenRow { background-color: #5C5662; }\r
+div.ricoLG_oddRow { background-color: #3D3644; }\r
--- /dev/null
+div.ricoLG_evenRow { background-color: #ffffff; }\r
+div.ricoLG_oddRow { background-color: #eeeeee; }\r
--- /dev/null
+.ricoLG_oddRow { background-color: #F6F6F6; }\r
--- /dev/null
+.ricoLG_oddRow {\r
+ background-color: #EEE;\r
+}\r
--- /dev/null
+.ricoLG_evenRow { }\r
+.ricoLG_oddRow { background-color: #EEE; }\r
--- /dev/null
+div.ricoLG_evenRow { background-color: #ffffff; }\r
+div.ricoLG_oddRow { background-color: #93C3CD; }\r
+.ricoLG_bottom div.ui-state-hover {\r
+ border-left: none;\r
+ border-top: none;\r
+ border-right: none;\r
+}\r
--- /dev/null
+div.ricoLG_evenRow { background-color: #ffffff; }\r
+div.ricoLG_oddRow { background-color: #f8f4f0; }\r
+.ricoLG_bottom div.ui-state-hover {\r
+ border-left: none;\r
+ border-top: none;\r
+ border-right: none;\r
+}\r
--- /dev/null
+.ricoLG_oddRow { background-color: #619A35; }\r
--- /dev/null
+div.ricoLG_evenRow { background-color: #977C68; }\r
+div.ricoLG_oddRow { background-color: #685648; }\r
--- /dev/null
+div.ricoLG_evenRow { background-color: #C9C9C9; }\r
+div.ricoLG_oddRow { background-color: #D9D9D9; }\r
+.ricoLG_bottom div.ui-state-hover {\r
+ border-left: none;\r
+ border-top: none;\r
+ border-right: none;\r
+}\r
--- /dev/null
+.ricoLG_oddRow { background:#F8F7F6 url(http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/pepper-grinder/images/ui-bg_fine-grain_10_f8f7f6_60x60.png) repeat scroll 50% 50%; }\r
--- /dev/null
+div.ricoLG_evenRow { background-color: #ffffff; }\r
+div.ricoLG_oddRow { background-color: #EEF5FB; }\r
+.ricoLG_bottom div.ui-state-hover {\r
+ border-left: none;\r
+ border-top: none;\r
+ border-right: none;\r
+}\r
--- /dev/null
+.ricoLG_oddRow { background: #DBE6DD; }\r
--- /dev/null
+div.ricoLG_evenRow { background-color: #ffffff; }\r
+div.ricoLG_oddRow { background-color: #ececec; }\r
+.ricoLG_bottom div.ui-state-hover {\r
+ border-left: none;\r
+ border-top: none;\r
+ border-right: none;\r
+}\r
--- /dev/null
+div.ricoLG_evenRow { background-color: #FCFCF9; }\r
+div.ricoLG_oddRow { background-color: #F5F3E5; }\r
--- /dev/null
+div.ricoLG_evenRow { background-color: #ffffff; }\r
+div.ricoLG_oddRow { background-color: #CEE6F0; }\r
+.ricoLG_bottom div.ui-state-hover {\r
+ border-left: none;\r
+ border-top: none;\r
+ border-right: none;\r
+}\r
--- /dev/null
+div.ricoLG_evenRow { background-color: #FEF8E4; }\r
+div.ricoLG_oddRow { background-color: #FEEEBD; }\r
+.ricoLG_bottom div.ui-state-hover {\r
+ border-left: none;\r
+ border-top: none;\r
+ border-right: none;\r
+}\r
--- /dev/null
+div.ricoLG_evenRow { background-color: #000000; }\r
+div.ricoLG_oddRow { background-color: #2c2c2c; }\r
--- /dev/null
+div.ricoLG_evenRow { background-color: #ffffff; }\r
+div.ricoLG_oddRow { background-color: #eeeeee; }\r
+.ricoLG_bottom div.ui-state-hover {\r
+ border-left: none;\r
+ border-top: none;\r
+ border-right: none;\r
+}\r
--- /dev/null
+div.ricoLG_evenRow { background-color: #000000; }\r
+div.ricoLG_oddRow { background-color: #4c4c4c; }\r
--- /dev/null
+.ricoLG_oddRow {\r
+ background-color: #fffad0;\r
+ color: #101011;\r
+}\r
+\r
* @namespace Main Rico object
*/
var Rico = {
- Version: '3.0b1',
+ Version: '3.0b2',
loadRequested: 1,
loadComplete: 2,
theme: {},
createFormField: function(parent,elemTag,elemType,id,name) {
var field;
if (typeof name!='string') name=id;
- if (this.isIE) {
+ if (this.isIE && this.ieVersion < 8) {
// IE cannot set NAME attribute on dynamically created elements
var s=elemTag+' id="'+id+'"';
if (elemType) {
highlightClass : Rico.theme.gridHighlightClass || 'ricoLG_selection',
// export/print parameters
- maxPrint : 1000, // max # of rows that can be printed/exported, 0=disable print/export feature
+ maxPrint : 5000, // max # of rows that can be printed/exported, 0=disable print/export feature
// heading parameters
headingSort : 'link', // link: make headings a link that will sort column, hover: make headings a hoverset, none: events on headings are disabled
},
printAllSQL: function(exportType) {
- var parms=this.formQueryHashSQL(0,-1,exportType);
+ var parms=this.formQueryHashSQL(0,this.liveGrid.options.maxPrint,exportType);
parms.hidden=this.liveGrid.listInvisible('index').join(',');
var url=this.dataSource+'?'+Rico.toQueryString(parms);
window.open(url,'',this.liveGrid.options.exportWindow);
// for datasource that is a javascript function
_printAll: function(exportType) {
this.liveGrid.exportStart();
- this.ajaxOptions.parameters = this.formQueryHashSQL(0,-1);
+ this.ajaxOptions.parameters = this.formQueryHashSQL(0,this.liveGrid.options.maxPrint);
this.ajaxOptions.onComplete = Rico.bind(this,'_jsExport',exportType);
this.dataSource(this.ajaxOptions);
},