This is a migrated thread and some comments may be shown as answers.

Grid Paging controls disappear when page size set to more than record count.

3 Answers 56 Views
Grid
This is a migrated thread and some comments may be shown as answers.
JD.
Top achievements
Rank 1
JD. asked on 23 Sep 2011, 03:43 PM
Hi

I have a grid with has paging enabled.
<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" 
    AllowPaging="True"  PageSize="5" ShowFooter="True" AllowSorting="True" AutoGenerateColumns="False" 
    CellSpacing="0"  GridLines="Both"
        ondeletecommand="RadGrid1_DeleteCommand" 
        onneeddatasource="RadGrid1_NeedDataSource" 
        onupdatecommand="RadGrid1_UpdateCommand" 
    oninsertcommand="RadGrid1_InsertCommand" onitemcreated="RadGrid1_ItemCreated" 
        onitemdatabound="RadGrid1_ItemDataBound" 
        Skin="Office2007" onitemcommand="RadGrid1_ItemCommand">

There is a Page-Size dropdown at the bottom of grid, having 5,10,20,50 as options. right now there are only 6 records, 
if user selects page size to 20 or 50,  the paging controls disappear.    What if user wishes to reset or set a new pagesize ?

We want that the pagesize control should remain on screen.  any workaround ?

-JD





3 Answers, 1 is accepted

Sort by
0
Accepted
Jayesh Goyani
Top achievements
Rank 2
answered on 23 Sep 2011, 05:18 PM
Hello J,

Please set below property.

<PagerStyle AlwaysVisible="true" />

let me know if any concern.

Thanks,
Jayesh Goyani
0
JD.
Top achievements
Rank 1
answered on 23 Sep 2011, 05:52 PM
Sincerely Jayesh, Your avatar is so connected to my state of mind, I guess its emotion of every developer
when he is traped in a bug or solving issues.    it gives me little smile watching it.

Thanks for the answer.
- JD.
0
Jayesh Goyani
Top achievements
Rank 2
answered on 23 Sep 2011, 05:53 PM
Hello J,

Thanks a lot.

Thanks,
Jayesh Goyani
Tags
Grid
Asked by
JD.
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
JD.
Top achievements
Rank 1
Share this question
or