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_Related Related Topics sp_TopicIcon
Multiple View/Edit forms opening on double click of subgrid
20/11/2012
23:33
Avatar
PaulR
New Member
Members
Forum Posts: 1
Member Since:
20/11/2012
sp_UserOfflineSmall Offline

We've upgrade from jqGrid 4.3.1 to 4.4.1, and noticed a difference in the way the form behavior operates.

The page is implemented with a main grid and a sub grid, when the row for either is double clicked, then the view or edit form is displayed for that particular row.

What is instead happening now, is when the subgrid row is double-clicked, then two view forms are opened.  One for the subgrid's row, and one for the parent row.

This behavior only happens on the ondblClickRow event, not when explicitly opening the view form with a pager button.  Reviewing the ondblClickRow call, I don't see what could be causing this to happen.  Any insight would be appreciated. 

The ondblClickRow definition:

Main Grid

ondblClickRow: function(rowid) {jQuery("#list").jqGrid('viewGridRow', rowid,{modal:true, width:1000, caption:"View Sessions", recreateForm:true,beforeShowForm: function(form) {jQuery("#list").setColProp('last_instruct',{formatter:"unformat"});},});},

Sub Grid

ondblClickRow: function(rowid) {jQuery("#"+subgrid_table_id).jqGrid('viewGridRow', rowid,{width:1000, modal:true, caption:"View Steps"});},caption: "Session Steps for Session "+row_id});
22/11/2012
12:16
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

To prevent propagation you will need to return false at end of the ondouble click row events

Regards

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:
29 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