Give dimensions to Radwindow relative to parent window.

2 posts, 0 answers
  1. A K
    A K avatar
    49 posts
    Member since:
    Apr 2010

    Posted 27 May 2010 Link to this post

    I have a rad window designed following way, Width and height ( dimensions) I would like to give % relative to parent window. How do I do this?

    Thanks



    <Windows>

                                        <telerik:RadWindow ID="RadWindow1" runat="server" Behavior="Default" InitialBehavior="None"

                                              Left="0" NavigateUrl="~/CommonPages/AvailableFinancialInstitutionList.aspx" Style="display: none;"

                                              Top="0" OpenerElementID="<%# lnkFiInstitution.ClientID %> " Width="800px" Height="600px"

                                              AutoSize="false" Animation="Resize" KeepInScreenBounds="True" Modal="False"

                                              VisibleStatusbar="False" Skin="Telerik" Title="Privacy Statement" VisibleTitlebar="True">

                                        </telerik:RadWindow>

                                  </Windows>

  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 28 May 2010 Link to this post

    Hello,

    One option would be explicitly setting the width using client side api of radwindow.

    client code:
     
        function OnClientShow(sender, args) {  
            sender.set_width(document.body.clientWidth / 2); // 50 percentage  
            sender.center();  
        } 
    [Attach the OnClientShow method to RadWindow]

    Regards,
    Princy.
Back to Top