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

[Solved] How to get controls to take up 100% of vertical space w/o scrolling?

1 Answer 49 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dmitri Nesteruk
Top achievements
Rank 1
Dmitri Nesteruk asked on 13 Aug 2010, 08:33 PM
I'm using RadSplitter to split my web page into several sections of varying sizes and in each section, I'm using an MVC control (Grid or Tab). Unfortunately, I can't get these controls to occupy exactly 100% of vertical space allocated to them. For example, setting style="height: 100%" for a grid simply doesn't work (no effect), while setting it for t-grid-content takes a lot more than 100%, causing scroll bars to appear.

A secondary question I have is this: how can I ensure that the number of items per page in a grid always corresponds to the vertical space present in the grid? I'm asking because I don't want a fixed .Pageable(X) statement, but rather want something more adaptable so that users don't have to scroll within the grid itself.

Your help is very much appreciated!

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 16 Aug 2010, 11:00 AM
Hello Dmitri,

Regarding the 100% height, the most robust solution would be to size the components with JavaScript, although we could try to find a CSS-only solution. In either case, submitting a sample project of your setup will enable us to find the solution for you.

Regarding your second question, the grid does not support such scenarios. You may be able to work around that by sending the viewport size to the server and doing some calculations, but the solution would be too fragile to suggest it.

Regards,
Alex Gyoshev
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
General Discussions
Asked by
Dmitri Nesteruk
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or