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

GridView to calculate data pager size

3 Answers 79 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Gilberto
Top achievements
Rank 1
Gilberto asked on 30 Aug 2010, 07:44 PM
Haw can i calculate the datapager size to fill (rows) all the area avaiable for the grid?

Is that possible?

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 31 Aug 2010, 07:03 AM
Hi Gilberto,

 I'm afraid that I don't understand your scenario. Can you provide a bit more info? Screenshot with desired result will be helpful as well. 

All the best,
Vlad
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Gilberto
Top achievements
Rank 1
answered on 31 Aug 2010, 02:02 PM
Thanks for your reply Vlad,

Let me explain a bit more.

Considering, i have a form 50% height of a window, and a gridview in the other 50%, this avaiable area to gridview changes especially because screen resolution or even if the user changes the window size.

So how can i calculate the pagesize pager for this scenario?

Actually i want the max page size and no scroll.

Thanks
0
Vlad
Telerik team
answered on 31 Aug 2010, 02:30 PM
Hello,

 If you want to calculate PageSize depending on current visible grid rows you can check the approach used in this blog post. Look for SizeChanged event handler in CustomScrolling class. 

All the best,
Vlad
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Gilberto
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Gilberto
Top achievements
Rank 1
Share this question
or