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

Scrollbars on Parent Page disappear after opening Modal RadWindow

12 Answers 654 Views
Window
This is a migrated thread and some comments may be shown as answers.
Sean Murphy
Top achievements
Rank 1
Sean Murphy asked on 13 Nov 2007, 07:44 PM
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.

12 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 14 Nov 2007, 03:59 PM
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
0
Taylor
Top achievements
Rank 1
answered on 20 Nov 2007, 02:25 AM
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

0
Georgi Tunev
Telerik team
answered on 20 Nov 2007, 01:26 PM
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
0
Doreen
Top achievements
Rank 1
answered on 15 Sep 2008, 12:06 PM
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
0
Georgi Tunev
Telerik team
answered on 16 Sep 2008, 11:25 AM
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.
0
Yevgeniya
Top achievements
Rank 2
answered on 01 Jul 2009, 08:23 PM
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
0
Yevgeniya
Top achievements
Rank 2
answered on 01 Jul 2009, 08:48 PM
The issue seems to be complicated by having radwindow wrapped up by the update panel. Submitted the ticket.
0
Georgi Tunev
Telerik team
answered on 02 Jul 2009, 07:18 AM
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.
0
nenita
Top achievements
Rank 1
answered on 06 Jul 2009, 06:40 PM

0
nenita
Top achievements
Rank 1
answered on 06 Jul 2009, 06:40 PM
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.

0
Georgi Tunev
Telerik team
answered on 08 Jul 2009, 01:59 PM
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.
0
nenita
Top achievements
Rank 1
answered on 09 Jul 2009, 01:12 PM
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.
Tags
Window
Asked by
Sean Murphy
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Taylor
Top achievements
Rank 1
Doreen
Top achievements
Rank 1
Yevgeniya
Top achievements
Rank 2
nenita
Top achievements
Rank 1
Share this question
or