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

go back to page top problem

15 Answers 95 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Quick
Top achievements
Rank 1
Quick asked on 04 Apr 2008, 08:05 PM
I add these code on the page:
<script type="text/javascript">
    function scrollTop()
    {
        window.document.body.scrollTop = 0;
        window.document.documentElement.scrollTop = 0;
    }
</script>
...
RadajaxPanel1.ResponseScripts.Add("scrollTop();")
...

It's working on RadControls for ASP.Net, but it is not working on "Prometheus". Why?

Could someone finger out it?

15 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 07 Apr 2008, 02:26 PM
Hello Quick,

I tried to reproduce the described issue but unfortunately to no avail. Please find attached a sample project which worked as expected on my machine. Test it on your side and let us know what the difference in your scenario is. This can identify the source of the problem to address it accordingly.

Best regards,
Maria Ilieva
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Quick
Top achievements
Rank 1
answered on 07 Apr 2008, 04:30 PM
thank to give me the sample prorject. But when I run it on ASP.Net 3.5. It still doesn't work. When I click the button, the page just flash once, and it doesn't go back to page top.

But it's wired. when I change it using the components of RadControls for ASP.NET,  it's working.
0
Quick
Top achievements
Rank 1
answered on 07 Apr 2008, 04:35 PM
One more thing, it's working on ASP.NET 2.0, but not working on ASP.NET 3.5
0
Maria Ilieva
Telerik team
answered on 08 Apr 2008, 02:49 PM
Hello Quick,

Have you changed the dll files in your application to be the appropriate for 3.5 framework. These are the dll files in bin35 folder of the installation files.

All the best,
Maria Ilieva
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Quick
Top achievements
Rank 1
answered on 08 Apr 2008, 04:05 PM
Yes, I did change the dll files. But it's still not working.
0
Quick
Top achievements
Rank 1
answered on 08 Apr 2008, 04:18 PM
Ok, I fix it. I have to move the code below
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>

to the bottom of page. Then it's working.
0
Quick
Top achievements
Rank 1
answered on 08 Apr 2008, 04:27 PM
Sorry, I made mistake. After I move
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>

to the bottom of page. There is no ajax on this page.

so the problem is not fixed.
0
Konstantin Petkov
Telerik team
answered on 09 Apr 2008, 05:26 AM
Hi Quick,

You need to place the ScriptManager on the page before any control, which needs that. This is an MS AJAX requirement one cannot skip.

Sincerely yours,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Quick
Top achievements
Rank 1
answered on 09 Apr 2008, 07:58 PM
Thank you for answering. But the problem is still there. it can't go back to the page top after I click the button. It doesn't work on ASP.Net 3.5.
0
Maria Ilieva
Telerik team
answered on 11 Apr 2008, 11:18 AM
Hi Quick,

Please find attached a sample project which works as expected with ASP.NET 3.5. There is a slight difference in the solution, i.e. adding a timeout in the scrollTop() function. Test it on your side and let us know if it works for you.

Best regards,
Maria Ilieva
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Quick
Top achievements
Rank 1
answered on 11 Apr 2008, 03:38 PM
It's working on my end. Thank you very much for your help.
0
Kapil Jain
Top achievements
Rank 2
answered on 01 Oct 2008, 07:30 PM
Hi,

Can you please let us know the same kind of solution for RAD ASP.NET.

Our requirement: To go on the top of page if user click on grid pager; Grid pagination is ajax enabled and is maintaining the same state on grid page change. We have multiple grids inside main grid and if we click on main grid pager, page should load from top

Regards,
Kapil
0
Sebastian
Telerik team
answered on 02 Oct 2008, 08:23 AM
Hi Kapil,

To achieve your goal, consider setting the MaintainScrollPositionOnPostback attribute of your Page directive to false. Thus the browser window's scroll position should be reset when triggering a request to the server when navigating to a different page in the grid.

Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Kapil Jain
Top achievements
Rank 2
answered on 02 Oct 2008, 03:22 PM
Hi,

For further help i logged a support ticket ID:165434

Please support.

Thanks

Regards,
Kapil
0
Sebastian
Telerik team
answered on 02 Oct 2008, 03:25 PM
Hello Kapil,

We will review the ticket and will get back to you with more info on the subject.

Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Ajax
Asked by
Quick
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Quick
Top achievements
Rank 1
Konstantin Petkov
Telerik team
Kapil Jain
Top achievements
Rank 2
Sebastian
Telerik team
Share this question
or