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 ?
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
Sorry but can you provide the example for this, can I achieve the right click menu on flat view with this ?
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
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.
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
Hi Ian, its good to have this feature.
Hi Sohan,
Thank you for the feedback. Added your request to the backlog.
Regards,
Ian