Click here to Skip to main content
15,891,253 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi...

I'm using a div to get vertical scrollbar for the gridview. For that i made the scroll style of div as style="overflow". I have placed the div in an update panel since i'm refreshing the gridview using a timer.

Everything works fine except the scrollbar is not maintaining it's position. In every postback the scrollbar is moving to the initial position.

I have tried many javascript codes to solve this problem, but still it not solved. If anyone knows how to solve this please help me..

Thanks and regards

Nidhin
Posted
Updated 21-Mar-10 22:47pm
v2

1 solution

You need to use PageRequestManager DOM object to do it on client side.

Here you go:
Maintain GridView Scroll Position and Header Inside Update Panel[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900