Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
APIReport.aspx,APIReport.aspx.cs: Make sure the gridview footer is al…
Browse files Browse the repository at this point in the history
…ways visible

svn path=/trunk/moma-tool/; revision=121583
  • Loading branch information
dickp committed Dec 16, 2008
1 parent 03874bf commit ca7e113
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
9 changes: 5 additions & 4 deletions web_service/APIReport.aspx
Expand Up @@ -35,8 +35,9 @@
<asp:Button ID="IssueFilterButton" runat="server" Text="Update" OnClick="IssueFilterButton_Click" />
</div>
<asp:GridView ID="IssuesGridView" runat="server" AutoGenerateColumns="False" DataSourceID="IssuesSqlDataSource"
AllowPaging="True" AllowSorting="True" PageSize="10"
onrowdatabound="IssuesGridView_RowDataBound">
AllowPaging="True" AllowSorting="True" PageSize="30"
onrowdatabound="IssuesGridView_RowDataBound"
onprerender="IssuesGridView_PreRender">
<AlternatingRowStyle CssClass="gv_col_alternating" />
<HeaderStyle CssClass="gv_header" />
<PagerStyle CssClass="gv_pager" />
Expand All @@ -51,9 +52,9 @@
<asp:Label ID="PagerRowsLabel" runat="server" Text="Show rows:" />
<asp:DropDownList ID="PagerPageSizeDropDownList" runat="server" AutoPostBack="true"
OnSelectedIndexChanged="PagerPageSizeDropDownList_SelectedIndexChanged">
<asp:ListItem Value="10"></asp:ListItem>
<asp:ListItem Value="20"></asp:ListItem>
<asp:ListItem Value="30"></asp:ListItem>
<asp:ListItem Value="50"></asp:ListItem>
<asp:ListItem Value="100"></asp:ListItem>
</asp:DropDownList>
Page
<asp:TextBox ID="PagerGotoTextBox" runat="server" AutoPostBack="true"
Expand Down
12 changes: 12 additions & 0 deletions web_service/APIReport.aspx.cs
Expand Up @@ -159,4 +159,16 @@ protected void IssuesGridView_RowDataBound(object sender, GridViewRowEventArgs e
}
}
}
protected void IssuesGridView_PreRender(object sender, EventArgs e)
{
GridView grid = (GridView)sender;
if (grid != null)
{
GridViewRow pagerRow = (GridViewRow)grid.BottomPagerRow;
if (pagerRow != null)
{
pagerRow.Visible = true;
}
}
}
}

0 comments on commit ca7e113

Please sign in to comment.