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

Give dimensions to Radwindow relative to parent window.

1 Answer 99 Views
Window
This is a migrated thread and some comments may be shown as answers.
A K
Top achievements
Rank 1
A K asked on 27 May 2010, 07:14 PM

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>

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 28 May 2010, 01:51 PM
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.
Tags
Window
Asked by
A K
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or