Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
keep vertical scrolling
17/10/2009
15:13
Avatar
sasha_gu
Member
Members
Forum Posts: 9
Member Since:
17/10/2009
sp_UserOfflineSmall Offline

How to keep vertical scrolling after reload data?

temporal solution: comment a line
if(!ts.p.treeGrid&&!ts.p.scroll){/*ts.grid.bDiv.scrollTop=0;*/ in source code

18/10/2009
03:33
Avatar
Rumen[Trirand]
Moderator
Members

Moderators
Forum Posts: 81
Member Since:
08/10/2009
sp_UserOfflineSmall Offline

I believe you can pretty much use the same logic, save the scrollTop before grid reload

var savedScrollTop = ts.grid.bDiv.scrollTop

and then restore it in the "gridComplete" event, instead of reseting to 0 (as is the original source). Will this work?

Rumen Stankov

Trirand

Trirand ASP.NET WebForms & MVC components based on jQuery & ThemeRoller

http://www.trirand.net

18/10/2009
05:10
Avatar
sasha_gu
Member
Members
Forum Posts: 9
Member Since:
17/10/2009
sp_UserOfflineSmall Offline

And how to get access to the property through ts.grid.bDiv.scrollTop jQuery("# list"). ?
I do not know much jQuery

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
67 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information