RadWindow scrolling ignoring scroll

3 posts, 0 answers
  1. Manuel Ortiz
    Manuel Ortiz avatar
    68 posts
    Member since:
    Aug 2009

    Posted 28 Dec 2010 Link to this post

    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. Cori
    Cori avatar
    562 posts
    Member since:
    Jul 2010

    Posted 29 Dec 2010 Link to this post

    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.
  3. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 30 Dec 2010 Link to this post

    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.
Back to Top