I'm running into this problem where I can scroll to the top of the page after a call back. I have a tab strip with a multipage below it. When I scroll to the bottom to click a button, I've put this in the button click's code-behind:
RadTabStrip tabStrip = (RadTabStrip)Page.FindControl("RadTabStrip1");
if (checkoutTabStrip != null)
{
tabStrip.SelectedIndex = 1;
tabStrip.MultiPage.SelectedIndex = 1;
}
RadAjaxManager.GetCurrent(this.Page).ResponseScripts.Add("window.scrollTo(0,0);");
This seems to work and when the button is clicked, the page does scroll to the top- for a second!! Then it scrolls back to the bottom where the button was clicked. I tried turning off the scroll position thru .NET but this didn't do anything:
MaintainScrollPositionOnPostback="false"
Is there a Telerik property that's controlling this? I can't seem to make my scroll to the top stick because I don't know what, but something is coming after my scrollTo(0,0) and scrolls it back down. Any ideas on this?
RadTabStrip tabStrip = (RadTabStrip)Page.FindControl("RadTabStrip1");
if (checkoutTabStrip != null)
{
tabStrip.SelectedIndex = 1;
tabStrip.MultiPage.SelectedIndex = 1;
}
RadAjaxManager.GetCurrent(this.Page).ResponseScripts.Add("window.scrollTo(0,0);");
This seems to work and when the button is clicked, the page does scroll to the top- for a second!! Then it scrolls back to the bottom where the button was clicked. I tried turning off the scroll position thru .NET but this didn't do anything:
MaintainScrollPositionOnPostback="false"
Is there a Telerik property that's controlling this? I can't seem to make my scroll to the top stick because I don't know what, but something is coming after my scrollTo(0,0) and scrolls it back down. Any ideas on this?