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

DateTimePicker Today Button Missing

7 Answers 558 Views
Calendar, DateTimePicker, TimePicker and Clock
This is a migrated thread and some comments may be shown as answers.
TwoLaJit
Top achievements
Rank 2
TwoLaJit asked on 22 May 2009, 12:20 AM
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

7 Answers, 1 is accepted

Sort by
0
Boyko Markov
Telerik team
answered on 22 May 2009, 07:22 AM
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.
0
Justin
Top achievements
Rank 1
answered on 01 Dec 2011, 02:22 AM
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
0
Nikolay
Telerik team
answered on 05 Dec 2011, 10:11 AM
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.

0
Justin
Top achievements
Rank 1
answered on 05 Dec 2011, 12:55 PM
Thanks
0
yash
Top achievements
Rank 1
answered on 09 May 2012, 09:59 AM
Follwing link can show ur requirement


RadDateTimePickerWithTodayButton
0
Peter
Telerik team
answered on 09 May 2012, 02:49 PM
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 >>
0
Michael
Top achievements
Rank 1
Iron
answered on 19 Nov 2021, 11:04 PM

12 years later.  Here's how to do it in one line:

           raddatetimepickercontrol.DateTimePickerElement.GetCurrentBehavior.DateTimePickerElement.Calendar.ShowFooter = True
Dess | Tech Support Engineer, Principal
Telerik team
commented on 23 Nov 2021, 08:00 AM

Hi, Michael,

Feel free to use the following code snippet for showing the footer in RadDateTimePicker:

  Me.RadDateTimePicker1.DateTimePickerElement.Calendar.ShowFooter = True

 

Tags
Calendar, DateTimePicker, TimePicker and Clock
Asked by
TwoLaJit
Top achievements
Rank 2
Answers by
Boyko Markov
Telerik team
Justin
Top achievements
Rank 1
Nikolay
Telerik team
yash
Top achievements
Rank 1
Peter
Telerik team
Michael
Top achievements
Rank 1
Iron
Share this question
or