Hi,
We are experiencing an issue with cells having a input mask set on them. The default context menu does not show up when the cell is in edit mode and we right-click in it. The cell simply exit the edit mode.
This issue is happens if you have to following properties on the grid:
1. HeaderClickAction.SortMulti2. CellClickAction.Edit3. row selection type set to SelectType.Single
If row selection type is set to none, we do see the default context menu.
How can I make sure the menu will show up even if we have an input mask for the cell in edit mode?
Thanks,Annie
We are using .NetAdvantage 2009 vol.1
Hi Annie,
I tried this out with these settings, but I am unable to reproduce the issue you are describing. I can't see what the HeaderClickAction or SelectType on the row could possibly have to do with this. And CellClickAction of Edit is the default setting, so setting that explicitly doesn't do anything.
Perhaps you could post a small sample project here that demonstrates the issue?
Back to this issue, I have more details to provide.
For this particular grid, we are listening to the MouseUp event in order to display our custom context menu and we also listen to a custom event we created called "RowRightClick" which is raised within the ultragrid_click event. We get the row and cell information and check if the user used the right button of the mouse. If so, we raise this custom event. In this event, we set the current row as the selected one (row.Selected = true).
We get the problem mentioned above only when a cell has an input mask. Any other cells just works fine, i.e. the row gets selected and the appropriate context menu is displayed, depending if the cell is in edit mode or not.
For the column having an input mask set, right-clicking in the cell currently being edited simply exit the edit mode and displays our own context menu. Something is causing the cell to think it has to exit the editing mode but I am not sure what. Like I said, the cell next to this one is a regular one and if I go into edit mode and right click, I see the Cut, Copy, Paste... context menu. So what is different with a cell having an input mask?
As always, thanks for the input.
Annie
P.S. We are using version 9.2.20091.2085