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

RadGrid Height

4 Answers 157 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael Davis
Top achievements
Rank 1
Michael Davis asked on 18 Mar 2010, 08:20 PM
Hi,
I'm trying to create a RadGrid that has a fixed height, but always has the pager at the very bottom, no matter how many rows are shown.  Setting the height of the RadGrid (the div wrapper), will stretch the container to that height, however, the master table is only as tall as the amount of rows it contains (see  attached screenshot), so the pager isn't at the bottom. When I set a height for the master table, the pager is in the correct position, but the rows expand to fill the table. What I need is the rows to stay a fixed height, and have the pager at the very bottom of the div. Is this possible?
Thanks,
Mike

4 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 22 Mar 2010, 02:45 PM
Hello Michael,

In order to achieve the desired functionality, I suggest you set fixed height in pixels to the div wrapper. Thus the RadGrid control will calculate its dimensions in regards with this container pixel height.

I hope this helps.

All the best,
Pavlina
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
Michael Davis
Top achievements
Rank 1
answered on 22 Mar 2010, 04:50 PM
Hi Pavlina,
Thanks for the answer. Correct me if I'm wrong though, but setting the div wrapper height, will only affect the wrapper (as seen in the screenshot I originally attached). The table (unless it's height is set to 100%) will only be as tall as the number of rows + header and footer. If the height is set as 100%, it will stretch the rows to fill the extra space. I'm attaching a screenshot of the look I'd like to achieve. Would this be possible?
Thanks again,
Mike
0
Pavlina
Telerik team
answered on 23 Mar 2010, 11:00 AM
Hello Michael,

Please, examine the following code library and let me know if it helps to achieve your goal:
http://www.telerik.com/community/code-library/aspnet-ajax/ajax/how-to-set-100-height-and-random-styles-to-a-radajaxmanager-update-panel.aspx

Greetings,
Pavlina
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
hamid bahan
Top achievements
Rank 1
answered on 12 May 2010, 03:51 PM
hi
is it possible to share your beautiful stylesheet and sample of it?
Tags
Grid
Asked by
Michael Davis
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Michael Davis
Top achievements
Rank 1
hamid bahan
Top achievements
Rank 1
Share this question
or