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

Size of Radpane inside an iFrame

1 Answer 90 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
François Martel
Top achievements
Rank 1
François Martel asked on 17 Mar 2009, 07:52 PM
Hi,

I have some troubles to set the height and the width of my RadPane/Splitter to 100% inside my iFrame. I want that my RadPane / Splitter inside my iFrame take all the place (100% width and height). This is my iFrame code :

<iframe width="100%" height="100%" scrolling="auto" frameborder="0" src=".." allowTransparency="true" ></iframe>

And this is the code I load inside of it :

--------------------------------------------

<div style="height:100%">
<telerik:RadSplitter id="contenuProgramme" runat="server" height="100%" width="100%">
                    
    <telerik:RadPane ID="menuGauche" width="250" height="100%" runat="server">
        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed sagittis porttitor dui. Aenean lobortis nisi sit amet dui. Cras pharetra enim semper quam. In rhoncus. Proin ultricies magna at dui imperdiet dapibus. Aliquam condimentum. Curabitur vel velit non dolor sollicitudin ullamcorper. Sed porttitor vulputate eros. In hac habitasse platea dictumst. In quis velit. Mauris pretium dui sit amet turpis.
    </telerik:RadPane>
    
    <telerik:RadSplitBar ID="barreSeparatrice" runat="server"></telerik:RadSplitBar>
    
    <telerik:RadPane runat="server" ID="contenuDroite" width="100%" height="100%">
        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed sagittis porttitor dui. Aenean lobortis nisi sit amet dui. Cras pharetra enim semper quam. In rhoncus. Proin ultricies magna at dui imperdiet dapibus. Aliquam condimentum. Curabitur vel velit non dolor sollicitudin ullamcorper. Sed porttitor vulputate eros. In hac habitasse platea dictumst. In quis velit. Mauris pretium dui sit amet turpis.
    </telerik:RadPane>

</telerik:RadSplitter>
</div>
--------------------------------------------

Also, is it possible to take some content inside of an iFrame (a menu for example) and change his position by CSS (absolute or relative position) to set it outside of the iFrame?

Thanks

1 Answer, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 20 Mar 2009, 12:29 PM
Hello François Martel,
I used your code to prepare a simple test project, but the RadSplitter became as high and as wide as the IFRAME - please find the pages of my project attached. I used version 2009.1 311 for my test as you have specified and I tested under IE and FF.

Could you please prepare and send me a simple running project, demonstrating the problem you describe so that I can research was is causing it locally?

As to your second question - you cannot position an element in your content page, relative to your main page (the one containing the IFRAME). However, in case you know the position of the IFRAME (top and left) you can calculate and set the correct position of the Menu relative to your IFRAME.

Sincerely yours,
Tsvetie
the Telerik team


Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Splitter
Asked by
François Martel
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Share this question
or