Right click menu in flat table layout

Resolved
Sohan asked on November 7, 2017

Hi,
I know we can add right click menu in non-flat view by having below code.

document.body.addEventListener('contextmenu', _function);

But can we do this in flat view also ?

7 answers

Public
Tanya Gryshko Tanya Gryshko Flexmonster November 8, 2017

Hello, Sohan,
Thank you for writing to us.
Currently, Flexmonster Pivot does not have any context menu for the flat view. You can add your fully custom context menu using the event ("contextmenu").
Does it work for you?
Regards,
Tanya

Public
Sohan November 8, 2017

Sorry but can you provide the example for this, can I achieve the right click menu on flat view with this ?

Public
Ian Sadovy Ian Sadovy Flexmonster November 9, 2017

Hello Sohan,
 
Thank you for giving us some time.
We have prepared a sample for you - http://jsfiddle.net/flexmonster/1p2qbx2t/
Please take a look and let me know if you have any questions.
 
Regards,
Ian

Public
Sohan November 9, 2017

Thanks for the answer, but I am sorry , I should have been more clear on the question.
I have a pivot with classic view on which I have already added custom right click menu (additional buttons on context menu using above approach), now when I open drill down popup which shows additional details of the cell in a flat view, I would like to have right click menu on that view as well.

Public
Ian Sadovy Ian Sadovy Flexmonster November 9, 2017

Sohan, 
 
I understood now. Currently, there is no way to get CellObject that was selected on the drill-through via API, so abilities to create a fully functional context menu is very limited. Could you please let us know how this feature is critical for you now? We can add your request to our backlog to think about some generic and clean solution for customizing the context menu, but it will take some time.
 
Look forward to hearing from you.
 
Regards,
Ian

Public
Sohan November 10, 2017

Hi Ian, its good to have this feature.

Public
Ian Sadovy Ian Sadovy Flexmonster November 10, 2017

Hi Sohan, 
 
Thank you for the feedback. Added your request to the backlog.
 
Regards,
Ian

Please login or Register to Submit Answer