Scrollbars on Parent Page disappear after opening Modal RadWindow

13 posts, 0 answers
  1. Sean Murphy
    Sean Murphy avatar
    3 posts
    Member since:
    Jun 2007

    Posted 13 Nov 2007 Link to this post

    Parent page vertical scrollbars disappear when a rad windows is opened and does not reappear on close.

    Any ideas of a solution/workaround? Is this a bug?

    I'm using IE7.
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 14 Nov 2007 Link to this post

    Hi Sean,

    Can you please check our Returning Values From a Dialog and see if you can reproduce the problem there? I am asking you this because we are unable to reproduce the problem locally and in the demo, there is a modal RadWindow opened when there are scrollbars on the page.

    If you cannot reproduce the problem on the demo page, please open a new support ticket and send us a small sample project where the problem that you report can be experienced. We will check it right away.





    Regards,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Taylor
    Taylor avatar
    1 posts
    Member since:
    Nov 2006

    Posted 19 Nov 2007 Link to this post

    Georgi,
    Having the same problem here with the vertical scrollbar disappearing.   I was able to reproduce the problem using IE7 and the Returning Value From a Dialog sample.

    Using IE7
    1) Open the Window
    2) Maximize the Window
    3) Close the Window
    4) Vertical scrollbar disappears


    -Taylor

  4. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 20 Nov 2007 Link to this post

    Hello Taylor,

    Thank you very much for the detailed description. I logged it in our database and we will do our best to provide a fix for it as soon as possible.


    Your points were updated.



    Kind regards,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. Doreen
    Doreen avatar
    1 posts
    Member since:
    May 2008

    Posted 15 Sep 2008 Link to this post

    Hi,
    I'm having the same problem. I hv a modal RadWindow. Once the user maximizes this RadWindow, the scrollbar in the parent window disappears and user can no longer scroll in the parent window once the modal RadWindow is closed.

    Do you have an update on this?

    Rgds
  6. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 16 Sep 2008 Link to this post

    Hi Doreen,

    Yes, this problem appeared again in the latest releases but it is fixed in our internal builds and the fix will be available with the next service pack.


    Regards,
    Georgi Tunev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  7. Yevgeniya
    Yevgeniya avatar
    15 posts
    Member since:
    Mar 2008

    Posted 01 Jul 2009 Link to this post

    Hi,

    So which release contains the fix for this bug? We are on 2008.3.1314.35 and still seeing this problem with scroll bar disappearing on the parent when maximized radwindow is closed.

    Thanks,
    Yevgeniya Ball
  8. Yevgeniya
    Yevgeniya avatar
    15 posts
    Member since:
    Mar 2008

    Posted 01 Jul 2009 Link to this post

    The issue seems to be complicated by having radwindow wrapped up by the update panel. Submitted the ticket.
  9. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 02 Jul 2009 Link to this post

    Hello Yevgeniya,

    I just answered your support ticket on the same subject. For convenience I paste my reply below:

    Hello Yevgeniya,

    I examined your project and reproduced the problem. I noticed however, that you are not actually closing the RadWindow, but submit the parent page from within the content one when the RadWindow is maximized. Note that when a RadWindow is maximized, we intentionally hide the scrollbars and what is actually happening is that the page is submitted (via Ajax) while these scrollbars are still hidden (e.g. there is a style on the parent page that hides the scrollbars). Because you are using Ajax and the page is not actually fully reloaded and there is nothing that would "tell" the RadWindow that it is closed so the scrollbars should be brought back, the problem occurs. That is why when you disable Ajax, the problem does not appear - the whole page is reloaded and the dynamically entered style for hiding the scrollbars is removed.

    To fix the problem in the project that you sent me, all you need to do is to close the RadWindow properly - by using its close() method:

    function updateParent() { 
        GetRadWindow().BrowserWindow.updateByChild(); 
        GetRadWindow().close(); 

    If this doesn't help in your real scenario, try closing the window and then calling the code in the updateByChild() function with a small timeout.

    I hope this helps.



    Sincerely yours,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  10. nenita
    nenita avatar
    18 posts
    Member since:
    Dec 2008

    Posted 06 Jul 2009 Link to this post


  11. nenita
    nenita avatar
    18 posts
    Member since:
    Dec 2008

    Posted 06 Jul 2009 Link to this post

    Hi!!

    I have a doubt, I'm using Ajax Q1 2008 version, it's posible change the behavior than hide the vertical scroll, because these code dont work for my.

    I apreciate any help. I have similar problem.
    Thanks in advance.

  12. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 08 Jul 2009 Link to this post

    Hello nenita,

    As you can see in the thread above, there could be various reasons for such behavior. Please open a support ticket and send me a sample project that can be run locally and that reproduces the problem. I will check it and get back to you with a solution.


    All the best,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  13. nenita
    nenita avatar
    18 posts
    Member since:
    Dec 2008

    Posted 09 Jul 2009 Link to this post

    hi, thanks but already solve my problem i found the solution on somewhere from this site
    this the code

    <script type="text/javascript">
    //Para mantener el scroll en la pagina que se elimina cuando se abre la ventana.
    //to hold the scroll on the page when the window is open.
        function OnClientShow() {
            document.documentElement.style.overflow = "scroll";
        }
        function OnClientClose() {
            document.documentElement.style.overflow = "scroll";
        }
    </script>

     <telerik:RadWindow ID="RadWindow1" runat="server" VisibleStatusbar="False"
                EnableTheming="True" Height="250px" Width="750px" DestroyOnClose="True"
                 OnClientShow="OnClientShow"
                 OnClientClose="OnClientClose">             
            </telerik:RadWindow>

    sorry for my english. it work for my. thanks anyway.
    regards nenita.
Back to Top