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

RadTab / PageView not resizing when no height set

4 Answers 72 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Derek
Top achievements
Rank 1
Derek asked on 11 Mar 2013, 09:01 PM
I have a TabStrip with multiple page views inside. When I remove the height property from the markup, I expect the PageView to grow to the height of the content inside. Instead, the height of the tab looks to be set near 150px (a guesstimate) and is cutting off most of the content within the page, as shown in the attached picture. When I explicitly set the height of the PageView everything works correctly, however, if the content overflows I get scroll bars within the tab strip and I'm trying to prevent that. Any help would be greatly appreciated.
 

4 Answers, 1 is accepted

Sort by
0
Derek
Top achievements
Rank 1
answered on 12 Mar 2013, 02:51 PM
BUMP

Anyone?
0
Kate
Telerik team
answered on 13 Mar 2013, 01:13 PM
Hello Derek,

I would suggest that you refer to this help article where it is explained in details how you can adjust the height of the pageview when the ContentUrl property is used. Another approach that you can use is to set css class to the pageview (using the CssClass property) and set the desired height.

Greetings,
Kate
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.
0
Derek
Top achievements
Rank 1
answered on 13 Mar 2013, 03:22 PM
That gets me part of the way there. I was hoping there would be a cleaner solution in the form of a property that I was missing in the pageview declaration. 

This seems to work fine, mostly, but this tab will be showing and hiding content and in some cases leaves me with a great deal of white space at the bottom when I may only have a grid that's 300px tall. For some cases it fits perfectly, but when I dynamically hide my grids, it does not work.
0
Boyan Dimitrov
Telerik team
answered on 18 Mar 2013, 12:02 PM
Hi Derek, 

Unfortunately there is not such build-in property that you can easily use out of the box therefore I suggested using the ContentUrl in the combination with the code provided in the help article (linked in my previous post). However, if this does not help in your particular case I would suggest that you open a support ticket where you can attach your runnable project. Thus, we can inspect it locally and help you in resolving the particular issue that you currently get.


Kind regards,
Boyan Dimitrov
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
TabStrip
Asked by
Derek
Top achievements
Rank 1
Answers by
Derek
Top achievements
Rank 1
Kate
Telerik team
Boyan Dimitrov
Telerik team
Share this question
or