Dynamic PageSize

2 posts, 1 answers
  1. Carl-Johan
    Carl-Johan avatar
    22 posts
    Member since:
    May 2008

    Posted 07 Sep 2011 Link to this post


    I have a RadGridView and a RadDataPager in a usercontrol.


    - RadGridView –-------------------

    - RadDataPager ------------------


    This usercontrol is loaded into a panel that has a dynamic with.

    Is there a way to set the PageSize to automatically adjust its number so that it fits the entire panel. For example, if I use 20 there is a gap in the bottom, if I use 25 I can’t see the RadDataPager. Is there a way to fix this?

  2. Answer
    Rossen Hristov
    Rossen Hristov avatar
    2478 posts

    Posted 07 Sep 2011 Link to this post

    Hello Carl-Johan,

    I am afraid that there is no out-of-the-box way. You would have to develop some logic that will do the math and calculate what the page size should be so that the controls fit perfectly in their container. I don't think that this will be trivial though.

    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Back to Top