DateTimePicker Today Button Missing

7 posts, 0 answers
  1. TwoLaJit
    TwoLaJit avatar
    38 posts
    Member since:
    Nov 2006

    Posted 21 May 2009 Link to this post

    Is it just me or is there a feature missing from the RadControls DateTimePicker that is in the normal DateTimePicker from Microsoft...

    I am looking to activate this as shown here. in the RadDateTimePicker

    I looked though all the over and over again and was not able to find it.

    Thank you
  2. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 22 May 2009 Link to this post

    Hi TwoLaJit,

    Here is a sample code which enables the footer area in RadDateTimePicker popup calendar:

       RadDateTimePickerCalendar datePickerCalendarBehavior = (this.radDateTimePicker1.DateTimePickerElement.GetCurrentBehavior() as RadDateTimePickerCalendar);

                RadCalendar calendar = datePickerCalendarBehavior.Calendar;

                calendar.ShowFooter = true;
                calendar.CalendarElement.CalendarStatusElement.Text = "";
                datePickerCalendarBehavior.DropDownMinSize = new Size(250, 250);

    I hope this helps.

    Sincerely yours,
    Boyko Markov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Justin
    Justin avatar
    8 posts
    Member since:
    Aug 2011

    Posted 30 Nov 2011 Link to this post

    Hi Boyko,

    How can I access the click event on the "Clear" button on the footer of the calander for the dateTimePicker?

    Thank you
    Justin
  5. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 05 Dec 2011 Link to this post

    Hello Justin,

    You can access the RadCalendar control as demonstrated in this article. Then, you can subscribe to the Click event of the ClearButton as shown below:

    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
     
            RadDateTimePickerCalendar calendarBehavior = this.radDateTimePicker1.DateTimePickerElement.GetCurrentBehavior() as RadDateTimePickerCalendar;
            RadCalendar calendar = calendarBehavior.Calendar as RadCalendar;
            calendar.ShowFooter = true;
            calendar.ClearButton.Click += new EventHandler(ClearButton_Click);
        }
     
        void ClearButton_Click(object sender, EventArgs e)
        {
            throw new NotImplementedException();
        }
    }

    I hope this helps.

    Kind regards,
    Nikolay
    the Telerik team

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

  6. Justin
    Justin avatar
    8 posts
    Member since:
    Aug 2011

    Posted 05 Dec 2011 Link to this post

    Thanks
  7. yash
    yash avatar
    1 posts
    Member since:
    Aug 2011

    Posted 09 May 2012 Link to this post

    Follwing link can show ur requirement


    RadDateTimePickerWithTodayButton
  8. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 09 May 2012 Link to this post

    Hello Yash,

    Please note that this forum concerns RadControls for WinForms and it seems that you question is related to the ASP.NET AJAX suite. Please address your question to the appropriate forum in order to get adequate response.

    Thank you for the understanding.

    Kind regards,
    Peter
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Back to Top
UI for WinForms is Visual Studio 2017 Ready