Author: husted
Date: Wed Oct 26 11:05:36 2005
New Revision: 328696

URL: http://svn.apache.org/viewcvs?rev=328696&view=rev
Log:
OVR-19
* Add another call to ItemPageCount to cure latency issue.

Modified:
    struts/sandbox/trunk/overdrive/Nexus/Web/GridControl.ascx.cs

Modified: struts/sandbox/trunk/overdrive/Nexus/Web/GridControl.ascx.cs
URL: 
http://svn.apache.org/viewcvs/struts/sandbox/trunk/overdrive/Nexus/Web/GridControl.ascx.cs?rev=328696&r1=328695&r2=328696&view=diff
==============================================================================
--- struts/sandbox/trunk/overdrive/Nexus/Web/GridControl.ascx.cs (original)
+++ struts/sandbox/trunk/overdrive/Nexus/Web/GridControl.ascx.cs Wed Oct 26 
11:05:36 2005
@@ -20,8 +20,7 @@
                /// <summary>
                /// Set the given criteria to the list_Critieria (creating a 
new one if null), and, 
                /// If AllowCustomPage is set, 
-               /// calcuate new Limit and Offset, based on pageIndex, and set 
to criteria; 
-               /// obtain Count from criteria (or set to 0).
+               /// calcuate new Limit and Offset, based on pageIndex, and set 
to criteria.
                /// </summary>
                /// <remarks><p>
                /// This form is provided to be called by list_Criteria_Init. 
@@ -276,8 +275,10 @@
                        IList list = helper.Outcome as IList;
                        DataGrid grid = Grid;
                        grid.DataSource = list;
-
-
+                       if (grid.AllowCustomPaging)
+                       {
+                               grid.VirtualItemCount = GetItemCount(helper);
+                       }
                }
 
                public override void DataBind()



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to