How can I check if a cell has been click/dbl clicked etc…
I can currently get the value of any cell if a row is selected but I can't tell if the user selected (clicked on) a cell itself. I only want to return a value if a user clicks on a specific cell. I'd guess it would be similar to tool tip but onclick instead of on hover
2 Answers
To learn more on jqGrid events, you can read this page:
http://www.trirand.com/jqgridwiki/doku.php?id=wiki:events
In your case, you would need to read about 'onCellSelect' event.
I tested the following javascript codes:
var opts = {
'onCellSelect': function (rowid,icol,cellcontent) {
var info='Row:'+rowid+'nCol:'+icol+'nContent:'+cellcontent;
alert(info);
}
}
Your Answer