Despite the COVID-19 outbreak, our team continues operating at full speed. We are always here to support and answer all your questions.

Feel free to reach out by filling this quick form.

Fill the form
Get Free Trial

Context menu doesn’t select clicked cell

Answered
Ilaria asked on December 13, 2019

Hi,
I would like to report an issue on selection and context menu.
The context menu doesn’t select the clicked cell.  If you have a selection on a cell and you right-click another cell the old one is still selected, so its’not clear which cell had been clicked (see attached image).
The correct behavior in my opinion should be:

  • if you right click on the selection, the selection doesn’t change (to preserve multi-selection)
  • if you right click outside the selection, the selection is moved to the clicked cell

Thank you!

9 answers

Public
Ian Sadovy Flexmonster December 13, 2019

Hello, Ilaria,
 
Thank you for reaching out to us.
 
We would like to kindly notice that the functionality of the cell selection and the context menu are not closely connected; therefore, opening the context menu through the specific cell has no impact on highlighting selected cells.
 
It would be very useful for us to know whether that inconsistent behavior is critical for your use case so we could provide an exact ETA of the fix.
 
Please contact us in case additional questions occur.
 
Best Regards,
Ian

Public
Ilaria December 16, 2019

Hi Ian,
I added a lot of customizations and functionalities to the pivot. Most of the code i wrote is attached to dom event listeners, so I always refer to ‘selectedCells’ to know which cells are selected and what is the user doing. Some of these procedures are also shared by handlers of contextmenu items, and this is ok if ‘selectedCells’ and parameter ‘data’ of customizeContextMenu are always the same. But I realized that is not so. This implies that i should re-write a lot of code, all just for a behavior that is not natural for the user. As I said the user expects that ‘right click’ is applied to selected cells and if you click outside the selection, a new selection is applied on the clicked cell.
So, this is a critical issue for me.
Thank you!

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster December 17, 2019

Hello, Ilaria,
 
Thank you for your feedback.
 
Our team would like to kindly inform you that the fix for the described inconsistent behavior will be provided with the minor update ETA Jan 13.
 
We will let you know when the version providing fix will be available.
 
Please let us know in case any additional questions arise.
 
Best regards,
Illia

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster January 14, 2020

Hello, Ilaria,
 
We are glad to announce that now the right click selects a cell on the grid.
 
This is included in the 2.7.23 version of Flexmonster: https://www.flexmonster.com/release-notes/
 
You are welcome to update the component.
Here is our updating to the latest version guide for assistance: https://www.flexmonster.com/doc/updating-to-the-latest-version/ 
 
Please let us know if everything works.
 
Best regards,
Illia

Public
Ilaria January 23, 2020

Hi, 
with this fix I now have a new problem: it is’t possible any more to open the context menu when more than one cell is selected. It seems you solved only the second of the two points:

  • if you right click on the selection, the selection doesn’t change (to preserve multi-selection)
  • if you right click outside the selection, the selection is moved to the clicked cell

We recently developed a new functionality that is available by context menu only in multiselection, so it is a big problem for us.
We will release this functionality at the end of the month. We can try to postpone the release by a couple of day. It is possible to have the fix in your next release?
Thank you!

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster January 23, 2020

Hello,
 
Thank you for your feedback.
 
Our team would like to kindly notice that it is still possible to open the context menu even if more than one cell is selected.
 
However, the default tabs of the context menu do not provide functionality connected with multi-selected cells. That is a reason the context menu is not appearing in case new tabs are not added.
 
Please see an example demonstrating using the context menu with several cells selected.
 
You are welcome to contact us in case of additional questions.
 
Best regards,
Illia

Public
Ilaria January 24, 2020

Ok,
I found out what the problem was. I modified you JSFiddle only by adding:

	options: {
grid: {
showHeaders: false
}
},

to the report configuration.
With this configuration is not possible to open the context menu on a multiselection.
It it right that this option affects the contextmenu behaviour?
Thank you!

Public
Vera Didenko Flexmonster January 24, 2020

Hello, Ilaria,

Thank you for your reply.

We would like to confirm that setting the showHeaders option does effect the context menu.
Our team will provide the fix for this issue in the upcoming minor release version with the ETA 27th of January.

Please let us know if you have any additional questions.
 
Best regards,
Vera

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster January 28, 2020

Hello, Ilaria,
 
We are glad to inform you that the issue with the context menu when multiple cells are selected with showHeaders: false option was fixed.
 
This is available in the 2.7.24 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 contact us in case any questions arise.
 
Best regards,
Illia

Please login or Register to Submit Answer