I have two issues with rad window:
- Is it possible to prevent rad window from being dragged outside of the screen boundaries?I tried using KeepInScreenBounds property, but it didn't help.
Here is my code example, and screen shot is attached:
<telerik:RadWindowManager ID="rwm" runat="server" ShowContentDuringLoad="false" Behaviors="Close,Move" VisibleStatusbar="false" Skin="Gray" Modal="true" KeepInScreenBounds = "true">
<Windows>
<telerik:RadWindow ID="rwAuditCredentials" runat="server" NavigateUrl="~/Pages/Audits/AuditCredentials.aspx" Title="Audit Credentials" Height="230px" Width="360px" KeepInScreenBounds="true">
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
- How can I prevent from radwindow from being opened outside of the screen bounderies? I got my radwindow opened when the title bar is outside the screen bounderies (as it looks in my print screen) and I couldn't drag it or close it.
Thanks!
I can't see the screenshot so I'm assuming you've had the same issue we have in that if the RadWindow is dragged to the bounds of a window then it automatically starts to scroll and you can leave it of the edge of your window.
We got round this same problem by using the Restriction Zone property.
The examples show it used in tables dedicated to a section of the page used purely for windows but if you're using it as a modal popup you can set it to the id of your main page div.
e.g.