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

radwindow autoflow

1 Answer 43 Views
Window
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 08 Apr 2014, 12:45 PM
We just ran into a problem with radwindows that we did not anticipate.  What happens is we design our programs for 22in wide screen monitors, but sometime personnel use thier labtop screen instead when not in office so what happens is the the radwindows pop up but are bigger then the screen they are on and they cannot get at the close buttons or some of the functionality of the window, beucase is was designed for a larger screen then they are working on.  How can we change this with regrad to Radwindow size so that an autoflow will come on if screen size is differrent then the default.



<telerik:RadWindowManager ID="rwManager" runat="server" Skin="Web20" Behaviors="Close" CssClass="rwWindowContent" style="z-index:30000" ShowContentDuringLoad="false" ReloadOnShow="true" VisibleStatusbar="false">
               <Windows>
                   <telerik:RadWindow ID="rwdelete" runat="server" NavigateUrl="~/MAC/Delete.aspx" Width="600px" Height="300px" OnClientClose="RefreshParentPage"></telerik:RadWindow>
                   <telerik:RadWindow ID="rwChange" runat="server" NavigateUrl="~/MAC/Change.aspx" Width="700px" Height="680px" OnClientClose="RefreshParentPage"></telerik:RadWindow>
                   <telerik:RadWindow ID="rwNew" runat="server" NavigateUrl="~/MAC/NewUser.aspx" Width="700px" Height="800px" OnClientClose="RefreshParentPage"></telerik:RadWindow>
                   <telerik:RadWindow ID="rwInfo" runat="server" Modal="true" NavigateUrl="Info.aspx" Width="1000px" Height="800px" OnClientClose="closeWindow"></telerik:RadWindow>
               </Windows>
           </telerik:RadWindowManager>

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 09 Apr 2014, 08:28 AM
Hi Kevin,

Please try to set the AutoSize property of RadWindow to true. It will resize the window according to the size of the content page. If the content page dimensions are bigger than the parent one, RadWindow will fill the browser and render scroll bars for viewing the rest of the content page.
RadWindow also supports a property called AutoSizeBehaviors that allows to get the better control over the auto sizing functionality. This property will accept the values like Default, Width, WidthPropotional, Height and HeightPropotional. If it is Default, RadWindow resizes itself proportionally by width and height and changes its position accordingly to the new size. If it is set to width or Height, the window is sized to the left or to the bottom only, without changing the control's position.

Thanks,
Shinu.
Tags
Window
Asked by
Kevin
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or