You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by hu...@apache.org on 2006/11/29 16:48:05 UTC
svn commit: r480602 -
/struts/sandbox/trunk/overdrive/Nexus/Web/GridControl.ascx.cs
Author: husted
Date: Wed Nov 29 07:48:03 2006
New Revision: 480602
URL: http://svn.apache.org/viewvc?view=rev&rev=480602
Log:
Fix problem with DataGrid legends being off when first displayed by raising a page change event for page 0.
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/viewvc/struts/sandbox/trunk/overdrive/Nexus/Web/GridControl.ascx.cs?view=diff&rev=480602&r1=480601&r2=480602
==============================================================================
--- struts/sandbox/trunk/overdrive/Nexus/Web/GridControl.ascx.cs (original)
+++ struts/sandbox/trunk/overdrive/Nexus/Web/GridControl.ascx.cs Wed Nov 29 07:48:03 2006
@@ -575,6 +575,13 @@
helper = ExecuteList(criteria);
else
helper = ExecuteList();
+
+ if (Grid.AllowCustomPaging)
+ {
+ int count = GetItemCount(helper);
+ ListPageIndexChanged_Raise(this, 0, Grid.PageSize, count);
+ }
+
return helper;
}