Select cell

QuestionsSelect cell
Scott Pratt asked 7 years ago

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
Agust answered 7 years ago

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);
}
}

Abu Ghufran answered 7 years ago

I guess agust resolved your concern (thanks agust). Let me know for further query.
Thanks.

Your Answer

4 + 0 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?