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

Dynamic PageSize based on screenheight?

1 Answer 53 Views
Grid
This is a migrated thread and some comments may be shown as answers.
steve
Top achievements
Rank 1
steve asked on 12 May 2012, 10:48 AM
Hello forum!

I have a <div> who has my RadGrid inside it. This <div> gets resized to fill the remaining space on the page using JQuery.
It is absolute necessary that my grid has paging on it. Now how can i make sure that:

1: My pager is ALWAYS at the bottom of my <div>, no matter what resolution
2: The pager items get dynamically determined based on the screen height remaining

I have been looking around for some days now, only to come up with half working solutions.
So remember, my <div> has NO fixed height but gets resized using JQuery.

Also, making the RadGrid height '100%' makes my data disappear?

I really hope someone help me out on this nasty situation..

Greetings!

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 17 May 2012, 08:16 AM
Hello,

You could try the approach that is shown in this online demo for the yahoo scrolling grid, but instead waiting for the user to scroll the grid you will do the resizing after your JQuery function has been executed. After that the approach is pretty much the same.

Give this approach a try and check whether this is the desired behavior.
Greetings,
Andrey
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
steve
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or