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

DateTimePicker stays on top when mdichild closes

3 Answers 71 Views
Calendar, DateTimePicker, TimePicker and Clock
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 19 Mar 2008, 12:25 PM
Hi,

I've got an MDI Application in which there are MDIChildforms whom contain RadDateTimePickers. when the Windowstate of the mdichilform is normal, the datetimepicker is selected (showing the calendar) and i then close the childform, the calendar still stays on top. If you click inside the calendar, the application will crash because the control doesnt exist anymore...

Any help?

Peter

3 Answers, 1 is accepted

Sort by
0
Boyko Markov
Telerik team
answered on 21 Mar 2008, 12:22 PM
Hello Peter,

This is one very strange issue. Have you tried to hide the dropDown when changing the state of the form?
For example to hide the popup you can use the following:

(datepicker.DateTimePickerElement.GetCurrentBehavior() as RadDateTimePickerCalendar).PopupControl.Hide();

I hope this helps.

Please, write me back if you need more assistance.

Kind regards,
Boyko Markov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Kevin Meyer
Top achievements
Rank 1
answered on 27 May 2008, 01:39 PM
We've experienced the same strange behavior.  Honestly, it shouldn't be the developer's responsibility to clean up the rad controls when a form is closed.
0
Boyko Markov
Telerik team
answered on 30 May 2008, 12:41 PM
Hi Kevin Meyer,

We are still investigating the issue. I believe we will address it in time for the next major release.

Greetings,
Boyko Markov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Calendar, DateTimePicker, TimePicker and Clock
Asked by
Peter
Top achievements
Rank 1
Answers by
Boyko Markov
Telerik team
Kevin Meyer
Top achievements
Rank 1
Share this question
or