Radwindow postioning problem

3 posts, 1 answers
  1. Dhamodharan
    Dhamodharan avatar
    300 posts
    Member since:
    Sep 2010

    Posted 03 Apr 2014 Link to this post

    Hi,
                I am using Radwindow in my screen. the document page(aspx) has a long content. I have to show the radwindow on a click event of a button which is shown below. My requirement is to show the radwindow on the top of the document  (means the Scroll position of my document page should be top when Radwindow show event occured), without any flickering.

    Need help as soon as possible





    Thanks
  2. Answer
    Marin Bratanov
    Admin
    Marin Bratanov avatar
    3600 posts

    Posted 04 Apr 2014 Link to this post

    Hello,

    You can do this by opening the RadWIndow with JavaScript and scrolling the page first. Here is a small example:

    <form id="form1" runat="server">
    <asp:ScriptManager ID="Scriptmanager1" runat="server" />
    top of the page
    <div style="background: yellow; height: 2000px;">
    </div>
    bottom of page
    <br />
    <telerik:RadWindow ID="RadWindow1" runat="server">
    </telerik:RadWindow>
    <asp:Button ID="Button1" Text="open RW" OnClientClick="scrollToTopAndOpenRw(); return false;"
        runat="server" />
    <script type="text/javascript">
        function scrollToTopAndOpenRw()
        {
            window.scrollTo(0, 0);
            $find("<%=RadWindow1.ClientID %>").show();
        }
    </script>
    </form>



    Regards,

    Marin Bratanov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Dhamodharan
    Dhamodharan avatar
    300 posts
    Member since:
    Sep 2010

    Posted 04 Apr 2014 in reply to Marin Bratanov Link to this post

    Thanks Marin,
     This worked perfectly
Back to Top