Size of Radpane inside an iFrame

2 posts, 0 answers
  1. François Martel
    François Martel avatar
    8 posts
    Member since:
    Oct 2008

    Posted 17 Mar 2009 Link to this post

    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
  2. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 20 Mar 2009 Link to this post

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