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
jqGrid 3.3.2 and google maps
29/12/2008
19:28
Avatar
alexnander
New Member
Members
Forum Posts: 1
Member Since:
30/12/2008
sp_UserOfflineSmall Offline

Not sure if this will qualify as a bug, but if you use jqgrid and google maps API in the same page, jqgrid takes over the mouseover event causing google maps to behave rather odd. (Strangely enough IE6 works fine)

My temporary fix is as follows

BEFORE  (jquery.jqGrid.js)

   ts.p._height += parseInt($(grid.hDiv,ts).height(),10);
        $(grid.hDiv).mousemove(function (e) {grid.dragMove(e.clientX); return false;}).after(grid.bDiv);
        $(document).mouseup(function (e) {
            if(grid.resizing) {
                grid.dragEnd();
                if(grid.newWidth && ts.p.forceFit===false){
                    var gwdt = (grid.width <= ts.p._width) ? grid.width: ts.p._width;
                    var overfl = (grid.width <= ts.p._width) ? "hidden" : "auto";
                    if(ts.p.pager && $(ts.p.pager).hasClass("scroll") ) {
                        $(ts.p.pager).width(gwdt);
                    }
                    if(ts.p.caption) {$(grid.cDiv).width(gwdt);}
                    if(ts.p.toolbar[0]) {$(grid.uDiv).width(gwdt);}
                    $(grid.bDiv).width(gwdt).css("overflow-x",overfl);
                    $(grid.hDiv).width(gwdt);
                }
                  
            }
            return false;
       });

AFTER (line 1444)

        ts.p._height += parseInt($(grid.hDiv,ts).height(),10);
        $(grid.hDiv).mousemove(function (e) {grid.dragMove(e.clientX); return false;}).after(grid.bDiv);
        $(document).mouseup(function (e) {
            if(grid.resizing) {
                grid.dragEnd();
                if(grid.newWidth && ts.p.forceFit===false){
                    var gwdt = (grid.width <= ts.p._width) ? grid.width: ts.p._width;
                    var overfl = (grid.width <= ts.p._width) ? "hidden" : "auto";
                    if(ts.p.pager && $(ts.p.pager).hasClass("scroll") ) {
                        $(ts.p.pager).width(gwdt);
                    }
                    if(ts.p.caption) {$(grid.cDiv).width(gwdt);}
                    if(ts.p.toolbar[0]) {$(grid.uDiv).width(gwdt);}
                    $(grid.bDiv).width(gwdt).css("overflow-x",overfl);
                    $(grid.hDiv).width(gwdt);
                }
                return false;   
            }
            return true;
        });
05/01/2009
02:58
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Thanks. I know about this problem in google maps. There was such post before some weeks. I'm not sure If I make the correction this will not destroy other things. Also a strong testing is needed here.

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.

04/03/2009
00:40
Avatar
dengelmeyer
New Member
Members
Forum Posts: 2
Member Since:
04/03/2009
sp_UserOfflineSmall Offline

Hello,

I am also experiencing an issue with google maps.  If I load the grid in after the page has loaded, the click handler for the map gets messed up.  When I click on the map, the click never gets released and the if I move the mouse around the page, the map just scrolls with it.  Oddly enough, it works just fine with IE 7 but not with the Mozilla 3.0.6.  Are there any suggestions for a fix?  I don't want to run the grid in an iframe, but will if it's a must.  Any info is greatly appreciated.

Thanks,

-Drew

06/03/2009
00:12
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

The fix will be in next bugfix release.

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.

07/03/2009
14:24
Avatar
dengelmeyer
New Member
Members
Forum Posts: 2
Member Since:
04/03/2009
sp_UserOfflineSmall Offline

Thank you Tony.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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