RadWindow Scroll

10 posts, 1 answers
  1. Ian
    Ian avatar
    38 posts
    Member since:
    Feb 2008

    Posted 08 Jul 2008 Link to this post

    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
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 08 Jul 2008 Link to this post

    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
  3. Ian
    Ian avatar
    38 posts
    Member since:
    Feb 2008

    Posted 08 Jul 2008 Link to this post

    Thanks for the swift response,

    Is there anyway to get the window to be centered rather than in the bottom right corner?
  4. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 08 Jul 2008 Link to this post

    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
  5. Ian
    Ian avatar
    38 posts
    Member since:
    Feb 2008

    Posted 08 Jul 2008 Link to this post

    Thanks for all the help

    Ian
  6. Ian
    Ian avatar
    38 posts
    Member since:
    Feb 2008

    Posted 15 Jul 2008 Link to this post

    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.
  7. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 15 Jul 2008 Link to this post

    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
  8. Answer
    Ian
    Ian avatar
    38 posts
    Member since:
    Feb 2008

    Posted 16 Jul 2008 Link to this post

    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
  9. John Schroeder
    John Schroeder avatar
    11 posts
    Member since:
    Nov 2009

    Posted 31 Jan 2010 Link to this post

    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!
  10. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 04 Feb 2010 Link to this post

    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.
Back to Top