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

popup calendar when set to Null date

3 Answers 154 Views
Calendar, DateTimePicker, TimePicker and Clock
This is a migrated thread and some comments may be shown as answers.
Lamees Afify
Top achievements
Rank 1
Lamees Afify asked on 14 Nov 2008, 05:04 PM
hey,
       When I set the RadDateTimePicker to Null value and try to open the popup after that the date is set to 1/1/1900. Is there any way to change that to open the popup with the date of today when the RadDateTimePicker instead of  1/1/1900?
Thanks

3 Answers, 1 is accepted

Sort by
0
Boyko Markov
Telerik team
answered on 18 Nov 2008, 05:19 PM
Hello Lamees Afify,

In the RadDateTimePickerCalendar class you have to access the PopUp Form and the Calendar used in the DateTimePicker. RadCalendar has a property called FocusedDate. When you set this property the Calendar will automatically navigate to the FocusedDate.

To access the RadDateTimePickerCalendar you should use the GetCurrentBehavior() method of RadDateTimePickerElement and cast it to RadDateTimePickerCalendar. The PopUp in RadDateTimePickerCalendar has events which will help you to understand whether the drop down is opened or not. Such event is the Opened event of RadDateTimePickerDropDown which I use as a pop up in the date time picker.

Please write me back if you need more assistance with this.

Regards,
Boyko Markov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Imran
Top achievements
Rank 1
answered on 16 Jun 2010, 04:36 AM
Boyko Markov any sample code that is doing this as you have suggested ??

IK
0
Dobry Zranchev
Telerik team
answered on 17 Jun 2010, 04:44 PM
Hello Imran,

In order to take how to get a calendar from datetimepicker you could see datetimepicker help. And for how to use calendar please look at calendar help.

Kind regards,
Dobry Zranchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Calendar, DateTimePicker, TimePicker and Clock
Asked by
Lamees Afify
Top achievements
Rank 1
Answers by
Boyko Markov
Telerik team
Imran
Top achievements
Rank 1
Dobry Zranchev
Telerik team
Share this question
or