popup calendar when set to Null date

4 posts, 0 answers
  1. Lamees Afify
    Lamees Afify avatar
    10 posts
    Member since:
    Mar 2008

    Posted 14 Nov 2008 Link to this post

    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
  2. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 18 Nov 2008 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Imran
    Imran avatar
    13 posts
    Member since:
    Jun 2010

    Posted 15 Jun 2010 Link to this post

    Boyko Markov any sample code that is doing this as you have suggested ??

    IK
  5. Dobry Zranchev
    Admin
    Dobry Zranchev avatar
    348 posts

    Posted 17 Jun 2010 Link to this post

    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
Back to Top