Need a help from you guys, while i am selecting a record and right clicking that record it will shows the contextMenuItem. this is expected behavior but clicking outside of the record it will also shows the contextMenuItem. this is because of that event belongs to the grid(grid.addRowContextClickHandler()). is there any option to restrict the contextMenuItem when clicking outside of the record. or is there any option to change that event belongs to record based instead of grid or this is expected GWT behavior. i have attached screenshots for your reference. Kindly look into Context_2 and Context_3 screenshots that is selected outside of record click. .kindly suggest your comments.
Announcement
Collapse
No announcement yet.
X
-
Hi,
Thanks for your response.
In our project, the context menu is appeared on top & bottom of the grid . This should not be the case the context menu appearing. Please refer the below screenshot that shows the context menu appeared top & bottom which is outside the record. Is there any way to get rid of this ?
Currently the context menu assigned to the grid alone from the below code snippet
Code:grid.addRowContextClickHandler(new RowContextClickHandler() { @Override public void onRowContextClick(RowContextClickEvent event) { if(event.getRecord() != null){ showGridContextMenu(event); } } });
Comment
-
We are likewise unsure what you mean. Again, rowContextClick fires only for a click on a record. If you are claiming some other behavior, we need a way to reproduce it in order to determine whether it's a framework issue, or just an issue in your code, for example, setting a contextMenu for the whole grid (as we mentioned above).
Comment
-
Hi ,
Thanks for your response. for more Convenient i have attached screen cast ( https://www.screencast.com/t/TvSmfnHpUffH ) for your reference what is exactly happening. i am waiting for your valuable response.
Comment
-
See our very first reply - #2 - that's actually how rowContextClick works. It only fires when you click an actual record.
You appear to have done something *else* that causes this contextMenu to appear, but we cannot figure out what you've done wrong when all you've posted is screenshots (debuggers do not work with screenshots). But we actually provided a theory of what you've done wrong, even so (again this is in our first reply - #2).
If you believe that, despite all this, you've discovered a framework issue, what we need is a minimal, ready-to-run test case clearly demonstrating a framework issue.
Please do not post again on this topic unless you have clear evidence of a framework issue. Thanks.
Comment
Comment