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

RadWindow Scroll

9 Answers 278 Views
Window
This is a migrated thread and some comments may be shown as answers.
Ian
Top achievements
Rank 1
Ian asked on 08 Jul 2008, 10:53 AM
Hello Telerik Team,

I am just enquiring into how to make a radwindow move as the scroll bar is used on the page behind?

Such that if the user scrolls down the main page the rad window will follow down.  I am sure the old Rad Windows did this, but i cannot find an example in the new Rad Ajax Controls for Rad Window.

Thanks in advance

Ian Ramsay
Developer
Image Red Ltd

9 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 08 Jul 2008, 11:11 AM
Hi Ian,

Please check the following Code Library article for the needed information:
http://www.telerik.com/community/code-library/submission/b311D-dtdcb.aspx



Sincerely yours,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Ian
Top achievements
Rank 1
answered on 08 Jul 2008, 12:19 PM
Thanks for the swift response,

Is there anyway to get the window to be centered rather than in the bottom right corner?
0
Georgi Tunev
Telerik team
answered on 08 Jul 2008, 12:52 PM
Hello Ian,

Yes, this is possible - instead of moving the window to the desired position, you can simply call its center() method:

function PositionWindow ()   
{  
 
    var oWindow = GetSelectedWindow();    
    if (!oWindow) {  
        return;  
    }  
oWindow.center();  



Regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Ian
Top achievements
Rank 1
answered on 08 Jul 2008, 02:08 PM
Thanks for all the help

Ian
0
Ian
Top achievements
Rank 1
answered on 15 Jul 2008, 08:48 AM
After alot of testing of the website we have built we have come up with an issue with the scrolling window.  If you click on an item to make the radwindow open at the top of the page the window displays and scrolls as it should do.  But if you click on an item at the bottom of the page everything gets greyed out as if the modal window has opened, but no window displays.
0
Georgi Tunev
Telerik team
answered on 15 Jul 2008, 11:44 AM
Hi Ian,

Can you please open a support ticket and send me your implementation so I can check it? Just make sure that the project can be run locally and attach it to the support thread - I will get back to you right away.


Regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Accepted
Ian
Top achievements
Rank 1
answered on 16 Jul 2008, 06:33 AM
Sorry its taken this long to get back to you,

Because we where pressed for time my collegue had to deal with the problem, he has decided to take out the scrolling window rather then the website look a mess.

Thanks for all your help

Ian Ramsay
0
John Schroeder
Top achievements
Rank 1
answered on 31 Jan 2010, 09:34 PM
I am having this problem as well.  I added the CSS to my page and when the parent page is at the top of the scroll position, and I then open a RadWindow it works great.  But if I am scolled down on the parent page and open a RadWindow, then it seems that the window is opened above the browser view and then when you scroll back up the RadWindow never comes into view.  Almost as if the RadWindow is opened and then fixed at the top of the page, and then when you scroll up it keeps scrolling out of view.

Im curios of there is a way to set the position of the RadWindow after it is displayed on the page?  For example use the RadWindow.show() method and then somehow apply the CSS positioning so that the window is first positioned relative to the parent scroll position, and then the CSS element is appied.
 
Thanks!
0
Georgi Tunev
Telerik team
answered on 04 Feb 2010, 08:59 AM
Hello John,

Please open a support ticket and send me your implementation so I could check it. I will rework your sample and send it back to you right away.


Sincerely yours,
Georgi Tunev
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Tags
Window
Asked by
Ian
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Ian
Top achievements
Rank 1
John Schroeder
Top achievements
Rank 1
Share this question
or