RadPane cramped on initial load

5 posts, 0 answers
  1. Jesse Lawler
    Jesse Lawler avatar
    46 posts
    Member since:
    Apr 2010

    Posted 09 Jul 2010 Link to this post

    I've got a RadPane that when it first loads, even though the <div> it is inside has a width of 100%, is incredibly narrow.  The moment I resize the browser (and thus, the <div> container), it resizes properly.  I've done some investigating and I realize that it's never fully loading (even though it displays in the browser).

    I have put in an EventHandler for OnClientLoaded and it only fires when I resize the container element, not on the initial page load.

    What is happening here?
  2. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 14 Jul 2010 Link to this post

    Hi Jesse,

    This behavior occurs if the RadPane's / RadSplitter's parent is initially 'hidden' (i.e. have set CSS property display:none;). In such scenario RadSplitter cannot calculate properly its size and to avoid it you need to manually execute RadSplitter's repaint() client-method when the parent is made visible.

    If this is not the case, please make sure that all of the RadSplitter's parents have set exclusively height property (including <html>, <body> and <form>). You can find more detailed information on the subject in this help article.

    If you still experiencing problems implementing one of above mentioned approaches could you please open a support ticket and provide a sample runnable project that demonstrates the problem so we can investigate it further?

    Best wishes,
    Dobromir
    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jesse Lawler
    Jesse Lawler avatar
    46 posts
    Member since:
    Apr 2010

    Posted 16 Jul 2010 Link to this post

    Thank you.  Calling the .repaint() method took care of the drawing ALMOST perfectly... There's still one strange thing happening:

    Within the RadPane, I have an AJAX Control Toolkit TabContainer with several different TabPanels within it.  Despite the fact that each of the TabPanels has content, only the first one (ActiveTabIndex = 0) is actually populating with visible content.  In all the others, the TabPanel has the correct height to hold its content, but the content is invisible for some reason.

    Any ideas?

    Jesse
  5. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 21 Jul 2010 Link to this post

    Hello Jesse Lawler,

    I am afraid that the provided information is not enough to find teh reason of teh problem. Could you please provide either working sample code or a live url where we can examine the problem? Once we receive that and we have a better understanding on what is actually happening we will do our best to help.


    Best wishes,
    Svetlina
    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
  6. Jesse Lawler
    Jesse Lawler avatar
    46 posts
    Member since:
    Apr 2010

    Posted 26 Jul 2010 Link to this post

    I figured out what was going on here.  There was some Javascript craziness that was no fault of Telerik's.  :)

    Thanks!
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017