Customize the values in the PageSize dropdown

3 posts, 1 answers
  1. Suzy
    Suzy avatar
    66 posts
    Member since:
    Nov 2014

    Posted 17 Jul 2015 Link to this post

    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. Answer
    Pavlina
    Admin
    Pavlina avatar
    6187 posts

    Posted 21 Jul 2015 Link to this post

    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
  3. Suzy
    Suzy avatar
    66 posts
    Member since:
    Nov 2014

    Posted 05 Aug 2015 in reply to Pavlina Link to this post

    Thank you Pavlina,

     Adding the PagerStyle settings to MasterTableView did the trick!

Back to Top