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
True Scrolling always bounces to top (fix included)
19/04/2012
22:40
Avatar
sheridan.bulger
Member
Members
Forum Posts: 3
Member Since:
19/04/2012
sp_UserOfflineSmall Offline

Hello. First off, great product. We use it heavily at work and I, as the resident web developer, quite enjoy it.

I've just spent a bit of time tracking down a small bug I noticed when I switched my grids to use the true scrolling feature. (On 4.3.2 latest). Basically, given my odd setup with a grid nested inside a scrollable div that is floated inside of an absolutely positioned element (blah blah blah), the scrGrid subfunction to setSelection seemed to be using an incorrectly calculated record position. offsetTop seemed to be returning a value much smaller than what would return correct results (300 as compared to 20000). These incorrect numbers would then cause the grid to jump back to the top every single time a different record is selected (Gee, this sounds like something I'd like to explain to my boss Wink). Switching offsetTop to jquery's position function made it work perfectly, however.

Old code:

    rpos = $t.rows[iR].offsetTop,

My code:

    rpos = $($t.rows[iR]).position().top,

Maybe this can make it into the actual release code of jqGrid? That would be nice. Otherwise I'll just have to remember to make the change every time I update jqGrid..

26/06/2012
21:38
Avatar
sheridan.bulger
Member
Members
Forum Posts: 3
Member Since:
19/04/2012
sp_UserOfflineSmall Offline

This didn't make the 4.4.0 release? That's pretty unfortunate.

10/07/2012
14:25
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello Sheridan,

Sorry that I missed this fix. I will perform some test too and will  (if no problem of course) publish it in the GitHUb, so it will be in the next bug fix release (comming soon)

Thanks.

Best Regards,

Tony

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

10/08/2012
22:38
Avatar
sheridan.bulger
Member
Members
Forum Posts: 3
Member Since:
19/04/2012
sp_UserOfflineSmall Offline

Thank you very much!

11/08/2012
10:05
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

Hello,

Thanks. Fixed

For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
62 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