Selection is lost when ContextMenu is displayed
See original GitHub issueWe are displaying the context menu using Control.ContextRequestedEvent
. Previously, is worked as expected, but since we migrated to preview 6, we’re losing the selection when the context menu is being displayed:
Issue Analytics
- State:
- Created 6 months ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Multiple selection lost when displaying ContextMenu
When using multiple selection in a TableView , clicking with the secondary button on a selected row to use the ContextMenu of the...
Read more >ContextMenu - Selected text becomes unselected when a ...
Hi, i have noticed a strange issue related with ContextMenu - div text selection is losing focus after context menu is shown at...
Read more >Some context menu items don't appear - Windows Client
Symptoms. The following items may be missing from the context (right-click) menu when multiple items are selected in Windows Explorer. · Cause.
Read more >Missing Context Menu Options on Text Selection #13081
I'm unable to reproduce. If you have already selected all of the text it doesn't show. Based on your screenshots that's what is...
Read more >Losing multi-select when right click for context menu
Hi, I am using the Rad gridview for windows forms. I have multiselect enabled and it mostly works like a charm (holding shift...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As a one who added ContextRequested event, you are supposed to handle this event, if you have opened any context menu. Otherwise, the same event can be handled by parent control and second menu might be opened. Even if this specific issue can be avoided in TDG, it still should be handled.
Should be fixed by https://github.com/AvaloniaUI/Avalonia.Controls.TreeDataGrid/pull/168