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

Radwindow postioning problem

2 Answers 18 Views
Window
This is a migrated thread and some comments may be shown as answers.
Dhamodharan
Top achievements
Rank 1
Dhamodharan asked on 03 Apr 2014, 09:24 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 04 Apr 2014, 12:41 PM

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.

 
0
Dhamodharan
Top achievements
Rank 1
answered on 04 Apr 2014, 05:21 PM
Thanks Marin,
 This worked perfectly
Tags
Window
Asked by
Dhamodharan
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Dhamodharan
Top achievements
Rank 1
Share this question
or