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

RadPane cramped on initial load

4 Answers 28 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Jesse Lawler
Top achievements
Rank 1
Jesse Lawler asked on 09 Jul 2010, 09:37 AM
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?

4 Answers, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 14 Jul 2010, 02:07 PM
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
0
Jesse Lawler
Top achievements
Rank 1
answered on 16 Jul 2010, 10:45 PM
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
0
Svetlina Anati
Telerik team
answered on 21 Jul 2010, 03:27 PM
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
0
Jesse Lawler
Top achievements
Rank 1
answered on 27 Jul 2010, 01:11 AM
I figured out what was going on here.  There was some Javascript craziness that was no fault of Telerik's.  :)

Thanks!
Tags
Splitter
Asked by
Jesse Lawler
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Jesse Lawler
Top achievements
Rank 1
Svetlina Anati
Telerik team
Share this question
or