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

Unwanted scrollbars in parent

1 Answer 62 Views
Window
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 24 Sep 2008, 10:49 AM
When I dynamically add a RadWindow it always shows scrollbars in the parent, even though there are no scrollbars in the parent when the RadWindow doesn't appear.

Here's my code:

                            RadWindow1 = new RadWindow();  
                            RadWindow1.KeepInScreenBounds = true;  
                            RadWindow1.Skin = "WebBlue";  
                            RadWindow1.VisibleOnPageLoad = true;  
                            RadWindow1.Modal = true;  
                            RadWindow1.ShowContentDuringLoad = false;  
                            RadWindow1.VisibleTitlebar = false;  
                            RadWindow1.VisibleStatusbar = false;  
                            this.Controls.Add(RadWindow1);  
 

I've tried setting an absolute Width and Height, but although that resizes the RadWindow correctly, the scrollbars are still in the parent.

How can I fix this so the RadWindow doesn't make any scrollbars appear in the parent if the parent doesn't already have them?

thanks,

Steve

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 29 Sep 2008, 07:38 AM
Hello Steve,

I am not quite sure what is the parent element of your RadWindow and that is why I tested the most common scenario - to add it to the main page. I prepared a sample test project based on your code but unfortunately I was not able to reproduce it.

Would you please modify the attached project in order to reproduce the issue, open a new support ticket and send it back to me along with your explanation? Once I am able to analyze the problem locally, I will do my best to help.

Regards,
Svetlina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Window
Asked by
Steve
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or