Need a special offer?Find out if your project fits.
+

Context menu deselect current cell

Answered
Rafael G Firmino asked on September 2, 2019

when i click with right-click and open contextmenu my cell dispose the selection current cell. I tried to fire a click event but it didn't work.

8 answers

Public
Vera Didenko Vera Didenko Flexmonster September 3, 2019

Hello, Rafael,
 
Thank you for writing to us.
 
At the moment in Flexmonster when right-clicking on a selected cell, the cell selection is removed.
 
Could you please provide more details on what you would like to achieve?
This will help us to understand the situation better.
 
We are waiting for your reply.
 
Best Regards,
Vera

Public
Rafael G Firmino September 3, 2019

Vera, thanks for trying to understand my problem! 

I have some actions that are triggered by the keyboard, and when an action is performed the pivot table loses the cell reference. And my users use this feature often, but it's becoming unviable as they have to reselect the cell.

Is there any way I can reference a cell by remarking as active not only with class but also with the event?

Public
Vera Didenko Vera Didenko Flexmonster September 4, 2019

Hello, Rafael,
 
Thank you for explaining more about your case.
 
Our team can provide an update so that the cell remains selected on right-click. 
Could you please confirm whether such a solution work for you?
 
Waiting for your reply.
 
Best Regards,
Vera

Public
Rafael G Firmino September 5, 2019

It works! But it would be interesting to ensure that closing the contextmenu does not lose the selection. because when I use the double click and the keyboard to open the contextmenu the cell also loses the selected event.

Public
Vera Didenko Vera Didenko Flexmonster September 6, 2019

Hello, Rafael,
 
Thank you for your response.
 
We tried opening the context menu with the Menu key on the keyboard and see that the selected cell loses its selection.
Our team will provide an update so that the selected cell remains selected on right-click, when Menu key on the keyboard is pressed and after the context menu is closed.
 
This update will be available in the minor release version with the ETA October 7th.
 
Could you please provide more details about the double-click scenario you mentioned? A double click is usually used to open the drill-through pop-up window. Please let us know if your use case is different.
 
Waiting for your reply.
 
Best Regards,
Vera

Public
Rafael G Firmino September 6, 2019

First of all, thank you very much for the attention you have given to solving our problem. we override the drill-through opening. It now opens a modal for exchanging cell values. As I mentioned earlier, It would be interesting to have a way to tell which cell is explicitly active, this would be the best scenario.

I attached 2 images, the one that has be first context menu button is opened with the right click, and the second is opened with the double left click.

Public
Vera Didenko Vera Didenko Flexmonster September 9, 2019

Hello, Rafael,
 
Thank you for providing more details about the double click scenario.
 
At the moment, on double-click, the selected cell remains selected.
Could you please provide a screen recording of the double click scenario?
This will greatly help us to understand the situation better.
Any sensitive information can be sent via email.
 
Regarding a way to get the active (selected) cell, this can be done with the getSelectedCell() API call
 
Waiting for your reply.
 
Best Regards,
Vera

Public
Vera Didenko Vera Didenko Flexmonster October 8, 2019

Hello, Rafael,
 
We are pleased to inform you that now the selected cell does not get deselected after the right click.
 
This is available in the 2.7.16 version of Flexmonster: https://www.flexmonster.com/release-notes/.
You are welcome to update the component.
Here is our updating to the latest version tutorial for guidance: https://www.flexmonster.com/doc/updating-to-the-latest-version/ .
 
Please let us know if everything works.
 
Best Regards,
Vera

Please login or Register to Submit Answer