Forum


10:03

Hi All. I have a grid with a subgrid. In this subgrid are hyperlinks that worked fine in jqGrid 3.4. I recently updated to 3.5.2 and my hyperlinks in the subgrid seem to be getting hijacked by the grid itself. Is this a bug or am I doing something wrong? If I right-click on a subgrid hyperlink I can open it in a new window fine.
Has anyone else seen this issue?
Thanks!
Greg
10:49

Hi Jose. Thanks for getting back to me. It's just a regular hyperlink. no Javascript for the link at all. It's really just simple html.
Here is the code I extracted from the page using firebug:
<a href="index.cfm?tab=My GCA&pageName=frm_orderComments&ocmOrderID=1406">Add</a>
Pretty simple stuff which is why I am so confused. . .maybe it's the space in the link?
02:54

Moderators
30/10/2007

Hello,
Yes the problem is the space.
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:36

Hi Tony.
Thanks for getting back but I checked the hyperlink with a simple website (http://www.google.com) and it is still not working. Any possibility that this is a bug in 3.5? Seems like something in the grid is hijacking the link action. . .
It's puzzling.
05:17

Moderators
30/10/2007

Hello,
What you use grid as subgrid or “pure” subgrid?
Sorry, that I not ask before.
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.
08:24

Hi Tony. Just a simple subgrid:
Code:
subGrid : true,
subGridUrl: 'ajax/ajx_dspChildOrders.cfm?showHeader=no',
subGridModel: [{ name : ['ID','Type','Sch. Del.','Comments','List'],
width : [45,150,90,90,70],
params:['ord_order_id']},
],
afterInsertRow: function(rowid, aData) {
if ($('#sub-' + rowid + '').get(0).innerHTML == 0) {
$('#' + rowid + ' td:first-child').unbind();
$('#' + rowid + ' td:first-child').html(' ');
}
},
Like I said before, these links worked fine with jqGrid 3.4. It was just when I upgraded that the hyperlinks returned were getting hijacked somehow. Again, if you right click on the link in FF and select “open in new window” it works fine.
02:37

Moderators
30/10/2007

Hello Greg
Thanks. This is a bug and is fixed in GitHub. You can grab the source and test and if you have difficulties with this, you should wait for the next bug fix release.
Regrads
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.
Most Users Ever Online: 715
Currently Online:
39 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