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

[Solved] Radwindow opened in an IFrame

1 Answer 256 Views
Window
This is a migrated thread and some comments may be shown as answers.
cyberzed
Top achievements
Rank 2
cyberzed asked on 21 May 2008, 11:04 AM
Working on a solution where our software will be embedded in corporate website and others like that.

A problem I have noticed is that
KeepInScreenBounds="True" 
doesn't work in this case...if I drag my window left it can get outside the frame and if I end my drag out there I'm stuck with a window I can't close again. Same thing happens if you drag it up outside the IFrame.

The quick thought was to use a self-developed bounds check via getWindowBounds() but that gives me positive x and y so can't rely on that.

So temporary solution is removing Move from the windows behavior list, but that might not be the best solution in the end.

Guess this is a unexpected behavior/undocumented feature/bug :)

1 Answer, 1 is accepted

Sort by
0
Accepted
Sophy
Telerik team
answered on 21 May 2008, 02:19 PM
Hi Stefan,

The KeepInScreenBounds property when set to true is expected to return the RadWindow to the visible area of the browser only when the window is shown outside the visible area of the browser. This property is not expected to return the window back if it is dragged outside the visible area of the browser. However, RadWindow for ASP.NET AJAX provides another property RestrictionZoneId which restricts window movement (and also maximize, minimize, resize functionality) to a particular area. For your convenience I prepared a sample page which demonstrates how the RestrictionZoneId property can be used in your case to restrict the draggable area of the window. You can also refer to the Restriction Zone online example

If you need further assistance, do contact us again.

Best wishes,
Sophy
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Window
Asked by
cyberzed
Top achievements
Rank 2
Answers by
Sophy
Telerik team
Share this question
or