I've implemented a context menu in my RadGrid but I only want it to display when the user clicks on the row portion of the grid. If the row is in edit mode, I still want the standard context menu to show up when the user right clicks on a text box so that they use the standard cut and paste.
I followed the example for the AJAX-enabled context menu but whenever the evt.target.tagName == "INPUT", the event stops dead. I would have thought that the right click event would have bubbled up and thus the standard context menu for the text box would show up.
What am I missing?
Thanks
Loy.
I followed the example for the AJAX-enabled context menu but whenever the evt.target.tagName == "INPUT", the event stops dead. I would have thought that the right click event would have bubbled up and thus the standard context menu for the text box would show up.
What am I missing?
| function RowContextMenu(sender, eventArgs) |
| { |
| var menu = $find("<%=RadMenu1.ClientID %>"); |
| var evt = eventArgs.get_domEvent(); |
| if(evt.target.tagName == "INPUT" || evt.target.tagName == "A") |
| { |
| return; |
| } |
Thanks
Loy.