Hi,
I am using a rad grid with pagination in opur application. I have a small question on retaining the grid pager in a particular scenario. Please help me.
I have set the grid PageSize to 10. I bound dataset with 20 records to the grid. Pager displays 2 pages for the user to view the records(10 records per page). Now if user changes the pagesize as 20 using the pager, then a single page will be displayed to the user with all 20 records in it. And pager will be not be displayed to the user anymore.
Now, if user want to set the PageSize back to 10, he/she cannot see the pager. Is it any property I am missing out to keep this pager?
Below is my grid definition:
Thanks in advance,
Nataraj
I am using a rad grid with pagination in opur application. I have a small question on retaining the grid pager in a particular scenario. Please help me.
I have set the grid PageSize to 10. I bound dataset with 20 records to the grid. Pager displays 2 pages for the user to view the records(10 records per page). Now if user changes the pagesize as 20 using the pager, then a single page will be displayed to the user with all 20 records in it. And pager will be not be displayed to the user anymore.
Now, if user want to set the PageSize back to 10, he/she cannot see the pager. Is it any property I am missing out to keep this pager?
Below is my grid definition:
<telerik:RadGrid ID="PrivateQueryDataGrid" runat="server" AllowPaging="true" PageSize="10" |
Skin="Web20" PagerStyle-Mode="NextPrevNumericAndAdvanced" OnItemCommand="PrivateQueryDataGrid_ItemCommand" |
AutoGenerateColumns="False" GridLines="None" OnNeedDataSource="PrivateQueryDataGrid_NeedDataSource"> |
<MasterTableView DataKeyNames="QueryID" ItemStyle-CssClass="GridItem" HeaderStyle-CssClass="Grid" |
CssClass="Grid" AlternatingItemStyle-CssClass="GridAltItem" RetrieveAllDataFields="false"> <Columns> |
<telerik:GridBoundColumn DataField="QueryName" HeaderStyle-HorizontalAlign="Center" |
HeaderText="Query Name"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="ReportName" HeaderStyle-HorizontalAlign="Center" |
HeaderText="Report Name"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="FilterString" HeaderStyle-HorizontalAlign="Center" |
HeaderText="Filter String"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="CreatedBy" HeaderStyle-HorizontalAlign="Center" HeaderText="Created By"> |
</telerik:GridBoundColumn> |
</Columns> |
<RowIndicatorColumn> |
<HeaderStyle Width="20px" /> |
</RowIndicatorColumn> |
<ExpandCollapseColumn> |
<HeaderStyle Width="20px" /> |
</ExpandCollapseColumn> |
</MasterTableView> |
<ClientSettings EnablePostBackOnRowClick="true"> |
<Resizing ClipCellContentOnResize="false" /> |
<Selecting AllowRowSelect="True" /> |
</ClientSettings> |
<FilterMenu EnableTheming="True"> |
<CollapseAnimation Duration="200" Type="OutQuint" /> |
</FilterMenu> |
</telerik:RadGrid> |
Thanks in advance,
Nataraj