I use 1 button to open RadWindow,
after RadWindow show so scrollbar of browser scroll to top
how to fix problem scroll to top
based on my demo at: http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=grid
thanks
sorry my bad english
after RadWindow show so scrollbar of browser scroll to top
how to fix problem scroll to top
based on my demo at: http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=grid
thanks
sorry my bad english
5 Answers, 1 is accepted
0
Hi khongminh9,
I suppose that you open the RadWindow by using a code similar to the following :
Please note that the correct declaration includes a "return false;" statement as follow :
In case that your setup is different than the described above, could you please paste your code here because we need it in order to determine the reason for the issue. It will be best if you open a new support ticket and send us a runnable project that reproduces the described behavior. Then we will do our best to provide a working solution.
Kind regards,
Fiko
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
I suppose that you open the RadWindow by using a code similar to the following :
<asp:LinkButton ID="LinkButton1" runat="server" onclientclick="openRadWindow();">Click Here To Show</asp:LinkButton> |
Please note that the correct declaration includes a "return false;" statement as follow :
<asp:LinkButton ID="LinkButton1" runat="server" onclientclick="openRadWindow(); return false;">Click Here To Show</asp:LinkButton> |
In case that your setup is different than the described above, could you please paste your code here because we need it in order to determine the reason for the issue. It will be best if you open a new support ticket and send us a runnable project that reproduces the described behavior. Then we will do our best to provide a working solution.
Kind regards,
Fiko
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0

ABC
Top achievements
Rank 1
answered on 19 Jun 2009, 01:20 AM
i known why
Cause: i used focus textbox in RadWindow
txtTextbox.Focus();
Thanks
Cause: i used focus textbox in RadWindow
txtTextbox.Focus();
Thanks
0

Valera
Top achievements
Rank 1
answered on 22 Jul 2011, 07:56 PM
Confirmed. I have the same problem:
When I open RadWIndow from parent using JavaScript, parent page will scroll up IF in RadWindow page there is a focus() declared server side on one of the text boxes.
Removing .focus() from server-side radwindow page will prevent parent page from crolling up.
(Using 2011 Q2)
When I open RadWIndow from parent using JavaScript, parent page will scroll up IF in RadWindow page there is a focus() declared server side on one of the text boxes.
Removing .focus() from server-side radwindow page will prevent parent page from crolling up.
(Using 2011 Q2)
0
Hi guys,
Indeed there is such a scrolling when a focus is set in the RadWindow. This happens when the ContentTemplate is used as the RadWindow is added to the top of the page in the markup. What I can recommend is that you set this focus via JavaScript (for example by injecting the script from the server-side, if needed) with a small timeout, even 0 is enough.
Greetings,
Marin
the Telerik team
Indeed there is such a scrolling when a focus is set in the RadWindow. This happens when the ContentTemplate is used as the RadWindow is added to the top of the page in the markup. What I can recommend is that you set this focus via JavaScript (for example by injecting the script from the server-side, if needed) with a small timeout, even 0 is enough.
Greetings,
Marin
the Telerik team
Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!
0

Muhammad
Top achievements
Rank 1
answered on 31 Jul 2012, 07:31 AM
I think Marin Bratanov is right.
I just removed the focus statement from my rad window page(opened in popup), and scroll up issue is resolved. try it.
In Popupwindow.aspx.cs => Page_Load event
i just commented the statement
//txtUserName.Focus();