The popup window of the RadDateTimePicker won't close, when the parent is a UserControl hosted by a form from another process.
Symptoms:
No matter how much you click the Calendar popup window, the drop-down button, press ESC, or change active window, the popup window refuses to close.
Pressing and holding down Left Ctrl+Left Shift+Left Alt+Right Ctrl+Right Alt+Right Shift+F5+Scroll Lock, will not close the popup window either.
How to reproduce, in three ultra-easy super-duper simple steps:
1)
Write a Microsoft Management Console SnapIn with a UserControl that implements Microsoft.ManagementConsole.IFormViewControl, containing one very misbehaving RadDateTimePicker.
2)
Run (you must first create a new management console file (.msc) with a reference to your new SnapIn, which was created in the first of the three ultra-easy super-duper simple steps, then set the path to that file as 'Startup parameter' and set mmc.exe as 'Start External Program').
3)
Click the dropdown button in the errant RadDateTimePicker. The popup is correctly displayed. Selecting a date in the popup will update the edit box, but the popup window will not close.
I have attempted to subscibe to the Calendar.SelectionChanged event and call the PopupControl.HideControl() as described in some previous post, but to no avail.
Calls to PopupControl.HideControl() will -not- close the popup window.
Calling PopupControl.HideControl() really often will -not- close the popup window.
I believe there is something spooky going on inside PopupControl.HideControl() or one of the methods that it calls that doesn't work in this scenario.
Oh, standard .NET ComboBox works fine.
Please advice!
Regard,
Juan