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

RadAjaxPanel Height in FireFox

2 Answers 133 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Jonathan Hunter
Top achievements
Rank 2
Jonathan Hunter asked on 22 Jul 2008, 01:33 PM
I ran into an interesting problem while coding a page this morning. When using the telerik:RadAjaxPanel control, I've found it impossible to set the size of this thing to fill the entirety of the surrounding container using the CssClass, Height & Width, class, or style attributes. It actually works in IE7, but in FireFox 3 it just refuses to do it (web standards?), and I think the following might be why.

When the HTML is rendered, something like the following is produced:
<div id="RadAjaxPanel1Panel"
    <div id="RadAjaxPanel1" class="cssclass"
        <!-- Content Goes Here --> 
    </div> 
</div> 
 

When the RadAjaxPanel1 div tries to increase its size to 100% of it's surrounding container, it's ramming up against the size of RadAjaxPanel1Panel's unspecified height. I've managed to get a workaround by using JavaScript to programatically set the height on the body.onLoad event of the document, but this does not seem like it should be the intended functionality.

Is there a way to access the surrounding div through the Properties of the control (preferably without having to go through the code-behind) and if not, can this be added in future releases?

Thanks,

Jonathan Hunter

2 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 22 Jul 2008, 03:44 PM
Hi Jonathan,

We fixed this problem and the fix will be available in our release. This is done on the client-side during initialization of the ajax panel.

Best wishes,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jonathan Hunter
Top achievements
Rank 2
answered on 22 Jul 2008, 04:01 PM
Awesome. Thanks for the info!
Tags
Ajax
Asked by
Jonathan Hunter
Top achievements
Rank 2
Answers by
Vlad
Telerik team
Jonathan Hunter
Top achievements
Rank 2
Share this question
or