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

Dock and Form Events

2 Answers 77 Views
Dock
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 2
David asked on 12 Jan 2012, 02:26 PM
Hi,

I have a Main form that is set to MDI Parent This has a RadRibbon and a RadDock.the Dock is set to  Auto Detect Mdi Children

I then Load a Form which contains a DataGridView in a Panel. I want to change the RadRibbon on the Main form to a Context Menu for the DataGridView when it is clicked and when the Form is Clicked the menu should return to the Form context.

I can switch to the DataGridView using its GotFocusEvent

To switch back the Form it is on does not fire the GotFocus, Activated or Click Events. is is possible to find out when the user has clicked on a form?

Thanks

2 Answers, 1 is accepted

Sort by
0
David
Top achievements
Rank 2
answered on 12 Jan 2012, 02:34 PM
Ignore all that I forgot I have a Panel on my Form that was stopping the events 

Stupid me

:)
0
Stefan
Telerik team
answered on 17 Jan 2012, 10:17 AM
Hi David,

I am glad to hear that you have found a solution for your case. Should you have any other questions, do not hesitate to contact us.

Regards,
Stefan
the Telerik team

SP1 of Q3’11 of RadControls for WinForms is available for download (see what's new).

Tags
Dock
Asked by
David
Top achievements
Rank 2
Answers by
David
Top achievements
Rank 2
Stefan
Telerik team
Share this question
or