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

Radwindow - hide scrollbars on host page

1 Answer 95 Views
Window
This is a migrated thread and some comments may be shown as answers.
Maciej
Top achievements
Rank 1
Maciej asked on 10 Jul 2012, 03:46 PM
Hello,

When I create new RadWindow on page (by using JS radopen function) It creates horizontal and vertical scrollbar on host form element. I digged this and it is caused by bigger than orginal restrictionZoneID form. For example when "form" element has 1900x1040px the "TelerikModalOverlay" has 1920x1044px. (see attached file)

Is there any method to avoid this?

My code:

<asp:Content ID="Main" runat="server" contentplaceholderid="PlaceHolderMain">
         
         
        <telerik:RadFormDecorator ID="RadFormDecorator" Skin="Office2007" runat="server" />
        <telerik:RadWindowManager ID="RadWindowManager" ShowContentDuringLoad="false" VisibleStatusbar="false" ReloadOnShow="true"
                                  EnableShadow="true" Skin="Office2007" runat="server" >
            <Windows>
                 
                <telerik:RadWindow ID="RZPositionPickerRadWindow" Title="Wybierz rachunek zamkniÄ™ty" NavigateUrl="ReconnetRZPositionsPickerDialog.aspx" Modal="true"
                                   Width="1000" Height="550" Skin="Office2007" Behaviors="Move, Close, Resize" EnableShadow="false"
                                   OnClientClose="RZPositionPickerRadWindow_OnClose" EnableViewState="false" RestrictionZoneID="aspnetForm" runat="server">
                </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>
</asp:Content>

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 13 Jul 2012, 10:59 AM
Hello Maciej,

 I tested your code and I indeed reproduced a problem but it was with positioning and not with scrollbars. Would you please try the following:

1) Set explicit id to the form element on the master page e.g as follows:

<form id="myForm" runat="server">

2) Use the explicit ID as restriction zone:


RestrictionZoneID="myForm"


When I did that the positioning problem disappeared. Please, test whether this changes the behavior on your side and if not - provide some more relevant code which is reproducing the issue and we will do our best to help.

Regards,
Svetlina Anati
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Window
Asked by
Maciej
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or