on 11-13-2017 5:46 PM
I need a context menu to appear when I right click on a row. I need to pick some data from the row to pass as a parameter in the context menu options/links. I use sap.ui.table.
In short I need the functionality of cellClick attribute that works when the user right clicks on a cell.
Any idea, how I can achieve this?
I was able to solve this issue by using the cellContextmenu event of sap.ui.table (https://sapui5.hana.ondemand.com/#/api/sap.ui.table.Table/events/cellContextmenu)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Right click does not have any unique event assigned. Generally, mouse events are click, mouse up/down etc.
For right-click, you have a workaround. The details are shared in the below link:
https://stackoverflow.com/questions/2405771/is-right-click-a-javascript-event
Use the menu actions assignment in the sample from below link:
Regards,
Sharath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.