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
0
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.
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
How can I access the click event on the "Clear" button on the footer of the calander for the dateTimePicker?
Thank you
Justin
0
Hello Justin,
I hope this helps. Kind regards,
Nikolay
the Telerik team
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
0
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
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
commented on 23 Nov 2021, 08:00 AM
Telerik team
Hi, Michael,
Feel free to use the following code snippet for showing the footer in RadDateTimePicker:
Me.RadDateTimePicker1.DateTimePickerElement.Calendar.ShowFooter = True