Home › Forums › Guriddo jqGrid JS › Help › ContextMenu
Hi, i've tried to integrate context menu without success, it doesn't appear
Hello, try to change your code:
for this one:
Hello. I trying to add context menu with contextmenu plugin.
All works fine.
But how can I get rowid, when I click on contextmenu item?
Thats my code:
jQuery(“.jqgrow, #listlearning_programs”).contextMenu('myMenu1', {
Inside of onContextMenu event handler you can use var rowId = $(event.target).closest("tr.jqgrow").attr("id");
var rowId = $(event.target).closest("tr.jqgrow").attr("id");
to get the rowId. Inside of 'edit', 'add' and other popup menu handler you can use t.id
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS