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

RadWindow scrolling ignoring scroll

2 Answers 121 Views
Window
This is a migrated thread and some comments may be shown as answers.
Manuel Ortiz
Top achievements
Rank 1
Manuel Ortiz asked on 29 Dec 2010, 05:03 AM
Hi, I have a page with several controls including a RadGrid.  In it, I have a LinkButton that opens a RadWindow popup using the radopen() command.  It works perfectly, the only problem is that the grid is on the bottom of the page and when I press the button to inside on of the grid's rows the RadWindow opens at the top of the page and my grid looses focus since the page is automatically scrolled to the top.  I included two screenshots to illustrate my problem: Screenshot 1 shows the grid at the bottom of the page; Screenshot 2 shows the page after the window is opened.  Here you can clearly see the problem.  I have researched your forums and codebase to no avail.  Remember that it is not a RadGrid's popup I am opening... it is a completely independent one triggered by a LinkButton inside the Grid.  Here is my RadWindowManager definition I have in the page:
<telerik:RadWindowManager ID="MasterWindowManager" runat="server" Modal="True" Skin="Black"   
        AutoSize="True" Width="450" Height="300" ShowContentDuringLoad="False"
        Style="z-index:7001" Behaviors="Resize, Close, Maximize, Move, Reload"
        DestroyOnClose="False" EnableShadow="True" KeepInScreenBounds="True" ReloadOnShow="true" VisibleStatusbar="False">
        <Windows>     
            <telerik:RadWindow ID="DefaultPopup" runat="server" DestroyOnClose="false"/>
        </Windows>
    </telerik:RadWindowManager>

Thanks for any help,
Manuel

2 Answers, 1 is accepted

Sort by
0
Cori
Top achievements
Rank 2
answered on 29 Dec 2010, 02:06 PM
Hello Manuel,

Have you tried setting the OffsetElementID to the RadGrid's ClientID? If you set it, it should display the RadWindow based on the position of the RadGrid, instead of scrolling to the top of the page.

I hope that helps.
0
Fiko
Telerik team
answered on 30 Dec 2010, 08:41 AM
Hi Manuel,

In case that the OffsetElementID property does not work (intended to be used in a very simple scenarios) you to use the $telerik.getBounds in order to get the position of the grid row and then move the RadWindow object using its moveTo method. You can check this example that shows the exact steps in order to achieve the desired result.


Regards,
Fiko
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Window
Asked by
Manuel Ortiz
Top achievements
Rank 1
Answers by
Cori
Top achievements
Rank 2
Fiko
Telerik team
Share this question
or