Forum
22:40
19/04/2012
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 ). 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..
14:25
Moderators
30/10/2007
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:05
Moderators
30/10/2007
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.
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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66