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

RadGrid page size change

2 Answers 170 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ajay
Top achievements
Rank 1
Ajay asked on 22 Mar 2011, 09:32 AM
Hi,

I have a situation where the RadGrid's pager hides when I change the page size from UI dropdown.

Steps:
I fill my grid with 12 rows of data. The RadGrid's is page size is 10, here the pager shows 2 pages, which is fine.
Now when I change my current page size to 20 records (from grid's pager combobox) the grid shows all 12 records but the Pager hides itself and there is no way I can get it back to show only 10 records without refreshing the page.

Please help.


Thanks
A

2 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 22 Mar 2011, 09:57 AM
Hello,


Set the PagerStyle -> AlwaysVisible property to "True" in order to show the pagerItem alsways even if there is only one page.

        <telerik:RadGrid ID="RadGrid1" TabIndex="1"  . . . >
            <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" />
            <MasterTableView HierarchyDefaultExpanded="false"


-Shinu.
0
Ajay
Top achievements
Rank 1
answered on 22 Mar 2011, 10:37 AM
Thanks a lot Shinu,
This worked.

A
Tags
Grid
Asked by
Ajay
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Ajay
Top achievements
Rank 1
Share this question
or