RadTab / PageView not resizing when no height set

5 posts, 0 answers
  1. Derek
    Derek avatar
    19 posts
    Member since:
    Jun 2011

    Posted 11 Mar 2013 Link to this post

    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.
     
  2. Derek
    Derek avatar
    19 posts
    Member since:
    Jun 2011

    Posted 12 Mar 2013 Link to this post

    BUMP

    Anyone?
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 13 Mar 2013 Link to this post

    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.
  5. Derek
    Derek avatar
    19 posts
    Member since:
    Jun 2011

    Posted 13 Mar 2013 Link to this post

    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.
  6. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 18 Mar 2013 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017