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

RadListView with RadDataPager next page displays bottom of the page

2 Answers 104 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Sakshi
Top achievements
Rank 1
Sakshi asked on 01 Jul 2012, 03:31 AM
Hi,

Anyone has an idea if this is a bug or need to set something?

I have a RadListView with RadDataPager.
When I click on the next icon of the pager on the bottom of my page, I want to see the top of the page, I verified the demo at below link  from telerik, the demo also shows the same,when you click on the next page icon, the page need to be loaded with data and top of the screen should appear.

http://demos.telerik.com/aspnet-ajax/listview/examples/paging/integratedpaging/defaultcs.aspx 

Right Now it loads the data and my screen will be same as before except with new data,as though nothing happened.

Thanks for checking my post, and I appreciate if someone can help me out on this.

2 Answers, 1 is accepted

Sort by
0
Compton
Top achievements
Rank 1
answered on 23 Oct 2012, 03:09 PM
Did you ever find a workaround for this?
0
Radoslav
Telerik team
answered on 26 Oct 2012, 07:27 AM
Hi Compton,

The described behavior is expected because the ajax is used on the page. If you want to reload the page and scroll to top you could try removing the RadAjaxManager or any ajax on the page. The other option is to move the scroll manual on the top of the page. On the following link you could find additional information on how to change the scrollbar position:
http://stackoverflow.com/questions/1247874/changing-scrollbar-position
You could register start up script which calls the function containing the code from the link when the ListView fires page command. Please give it try and let me know if it helps you.

All the best,
Radoslav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
ListView
Asked by
Sakshi
Top achievements
Rank 1
Answers by
Compton
Top achievements
Rank 1
Radoslav
Telerik team
Share this question
or