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

Dynamic PageSize

1 Answer 63 Views
DataPager
This is a migrated thread and some comments may be shown as answers.
Carl-Johan
Top achievements
Rank 1
Carl-Johan asked on 07 Sep 2011, 09:16 AM

Hi,

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?

1 Answer, 1 is accepted

Sort by
0
Accepted
Rossen Hristov
Telerik team
answered on 07 Sep 2011, 10:17 AM
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.

Regards,
Ross
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 >>

Tags
DataPager
Asked by
Carl-Johan
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or