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

[Solved] positioning a RadWindow off-screen

4 Answers 181 Views
Window
This is a migrated thread and some comments may be shown as answers.
IT Purchases
Top achievements
Rank 1
IT Purchases asked on 18 Jun 2008, 08:26 PM
I have a web page which uses several RadWindows to display content; they are lined up side-by-side.  There is a minimum pixel width requirement for each RadWindow, and I want the browser window to have a scrollbar and to continue placing RadWindows to the right if there is not enough space.  Is there a way to do this?

4 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 19 Jun 2008, 09:24 AM
Hi,

You can achieve such functionality by developing a custom client-side logic that would calculate the positions of the window and their size and will use the RadWindow's client-side API - moveTo() and setSize() to position and size the windows correctly.

Our suggestion is to implement the desired logic not by using RadWindow but a standard browser's popup (window.open()) or DIV elements. Once you have it working as expected, it will be very easy to replace the popup with RadWindow.



Greetings,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
IT Purchases
Top achievements
Rank 1
answered on 19 Jun 2008, 02:59 PM
I have already written the client-side logic to do this; the problem seems to be that the moveTo() function will not let me move the window beyond the bounds of what's currently visible in the browser, even if the page document itself is wider than the visible screen.  Is there any way around this?
0
Accepted
Georgi Tunev
Telerik team
answered on 19 Jun 2008, 03:06 PM
Hi,

I am not sure how you set up your RadWindow, but I suggest to make sure that KeepInScreenBounds is set to false. This way you will be able to set the needed values to the moveTo() method.



Kind regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
IT Purchases
Top achievements
Rank 1
answered on 19 Jun 2008, 08:11 PM
wow, can't believe I overlooked that.  Thanks!
Tags
Window
Asked by
IT Purchases
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
IT Purchases
Top achievements
Rank 1
Share this question
or