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
capture right click event
28/05/2010
16:49
Avatar
jasone66
Member
Members
Forum Posts: 6
Member Since:
27/05/2010
sp_UserOfflineSmall Offline

I want to add a context menu to the grid.  How do I capture the right click event on a row?

28/05/2010
18:33
Avatar
DaElectric
Member
Members
Forum Posts: 16
Member Since:
15/05/2010
sp_UserOfflineSmall Offline

http://www.trirand.com/jqgridw.....iki:events

You just need to define a right click event for the grid parameters.

Event Parameters Description

onRightClickRow

rowid,
iRow,
iCol,
e

Raised immediately after row was right clicked.
rowid is the id of the row,
iRow is the index of the row (do not mix this with the rowid),
iCol is the index of the cell.
e is the event object.
Note – this event does not work in Opera browsers, since Opera does not support oncontextmenu event
01/06/2010
21:44
Avatar
jasone66
Member
Members
Forum Posts: 6
Member Since:
27/05/2010
sp_UserOfflineSmall Offline

That event worked for showing a context menu.  However, my new problem occurs if the user doesn't click an option in the context menu it doesnt disappear unless the user right clicks on another row in the grid.  I would assume that clicking on any row would cause the context menu to disappear but that isnt the case.  I've tried several ContextMenu plugins and I get the same result with each.  I tried using the onSelectRow event to close the context menu but that isnt working either.

Any suggestions?

02/06/2010
21:53
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

You can look into the demos:

New in version 3.5 => TreeGrid real world example

where we use this

http://www.trendskitchens.co.n.....ntextmenu/

plugin

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.

04/06/2010
01:59
Avatar
tjones1105
Member
Members
Forum Posts: 18
Member Since:
25/02/2010
sp_UserOfflineSmall Offline

I too am trying to get the onRightClickRow function to work. I'm using 3.6.4 and I'm having no luck. Are there any examples, non tree view based of this?

thanks,

tom

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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