This is a migrated thread and some comments may be shown as answers.

Opening context menu causes form to loose focus

1 Answer 37 Views
ContextMenu
This is a migrated thread and some comments may be shown as answers.
Randy
Top achievements
Rank 1
Randy asked on 22 Oct 2013, 02:36 PM
In the new version of the WinForms controls (2013.3.1016.40) opening a context menu will cause the form to loose focus and flash.

This also makes the context menu not close all the time on the first click away form the menu since the form regains focus on the first click and then registers the click away on the second click.

This seems to be happening on all controls even when using the default context menu like in the grid view.

1 Answer, 1 is accepted

Sort by
0
Accepted
George
Telerik team
answered on 25 Oct 2013, 01:51 PM
Hi Randy,

Thank you for contacting us.

I can confirm that this is an issue with our context menu. I have logged it in our Public Issue Tracking System and you can find it at - http://www.telerik.com/support/pits.aspx#/public/winforms/16028. As a workaround you can use this code:
void grid_ContextMenuOpening(object sender, ContextMenuOpeningEventArgs e)
{
    e.Cancel = true;
    e.ContextMenu.Show(this.grid.GridViewElement, this.grid.PointToClient(MousePosition));
}

I have also updated your Telerik Points for reporting this.

I hope this helps.

Regards,
George
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
ContextMenu
Asked by
Randy
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or