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

Customize the values in the PageSize dropdown

2 Answers 394 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Suzy
Top achievements
Rank 2
Suzy asked on 17 Jul 2015, 01:00 PM

Hi,

How can I ​add a value of the PageSize dropdown?  I want to also have the value 5 in the pagesize.  Currently it is 10/20/50 but I need it to be 5/10/20/50.

Another problem, when I have a radgrid with 13 lines and I set the Pagesize to 20 (so greater then the actual size) then the pager disappears and you are not able to set the pagesize back to 10.  How can I avoid the disappearance of the pager?

Kind regards

Suzy

2 Answers, 1 is accepted

Sort by
0
Accepted
Pavlina
Telerik team
answered on 21 Jul 2015, 09:51 AM
Hi,

RadGrid provides PageSizes property which determines the values that will be displayed in the PageSize combo box in the RadGrid pager item. In order to make the pager always visible you need to set AlwaysVisible property to true. A sample code is attached below:

<PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" PageSizeLabelText="Page Size: " PageSizes="5,10,20,50" />

Give it a try and let us know if additional questions arise.

Regards,
Pavlina
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Suzy
Top achievements
Rank 2
answered on 05 Aug 2015, 06:37 AM

Thank you Pavlina,

 Adding the PagerStyle settings to MasterTableView did the trick!

Tags
Grid
Asked by
Suzy
Top achievements
Rank 2
Answers by
Pavlina
Telerik team
Suzy
Top achievements
Rank 2
Share this question
or