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

[Solved] Prometheus Grid Height

1 Answer 336 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sean Eby
Top achievements
Rank 1
Sean Eby asked on 25 Feb 2008, 06:54 PM
All,

I'm putting a prometheus radGrid into a dynamically created User Control.  The containing table is set to table-layout:fixed, and I have static headers and scrolling enabled.  Now, what I'd like is for the height of the radGrid to fill up the User Control, which can be Dynamically sized (not resized) from database settings.  However, it currently appears that the radGrid is fixed as some specific height.  I'm using the Vista skin as a starting part.  If I set the .RadGrid_Vista to height:100%, all I can see is the headers.  If I set the grid to the height of the UserControl, I lose the paging section.

Any ideas?

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 28 Feb 2008, 12:06 PM
Hi Sean,

In order to stretch the grid to occupy the entire available space, consider wrapping it inside RadSplitter and change its page size dynamically as demonstrated here:

http://www.telerik.com/DEMOS/ASPNET/Prometheus/Controls/Examples/Integration/GridAndSplitterResizing/DefaultVB.aspx?product=splitter

Another option for you might be to stretch the grid to occupy the entire available space in its container:

http://www.telerik.com/community/code-library/submission/b311D-keegm.aspx (see the project with Web_UI suffix in one of the last post in the code library thread)

or change the scroll height of the control dynamically depending on its container's height:

http://www.telerik.com/help/radcontrols/prometheus/?grdChangeScrollHeightAtRuntime.html

I hope one of these options is applicable for your page layout.

Best regards,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Sean Eby
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or