I have a requirement where right clicking on document name in grid opens a customized context menu (using Smartgwt). I had to implement hyperlink so I created an anchor tag (which calls a JSNI method which in turn calls a GWT method and which again in turn calls an applet method to open a document and stream it to the server). If you don't right click on the document name everything works fine and custom context menu opens. But when you click on document name then the default link menu with open, open in new tab comes and due to clash between smartgwt context menu and this menu some Javascript Null Pointer Exception is thrown in my client console.
Now is there any way that I can hide the default link menu (on anchor tag) so that it doesn't appear in my grid even when anyone clicks on the document name?
by adding this to anchor tag you can disable right click oncontextmenu="return false"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With