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

RadDateTimePickerCalendar Available for ASP.NET AJAX?

3 Answers 63 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Matt Low
Top achievements
Rank 1
Matt Low asked on 01 Dec 2010, 09:53 PM
Hello - I have a requirement to use a RadDateTimePicker control and have certain dates disabled/greyed-out based on certain sets of criteria. I've seen posts where this can be accomplished with the ASP.NET Calendar (without the TImePicker), as well as the WinForms RadDateTimePicker. In both of those cases, it seems you need to access the SpecialDays collection of a RadCalendar instance. In the WinForms example I found at: http://www.telerik.com/community/forums/winforms/calendar-and-datetimepicker/raddatetimepicker-calendar.aspx, you need to declare a variable of type RadDateTimePickerCalendar, then do a type-cast to ge to the actual Calendar "part" of that control. Then from there you can set the SpecialDays collection. Is there a an ASP.NET AJAX equivalent to this? I can't seem to find it. Thanks.

Matt

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 02 Dec 2010, 11:18 AM
Hello Matt,


You can use RadDatePicker and follow the logic to disable the days as described in the code library.
Code ibrary - Disable calendar days



-Shinu
0
Matt Low
Top achievements
Rank 1
answered on 02 Dec 2010, 05:35 PM
Hi Shinu - Yes, I understand I can accomplish what I'm trying to achieve with the RadDatePicker. Unfortunately, the specification is that the end-user not only be able to select the Date, but the Time as well. For this reason, I opted to use the RadDateTIMEPicker. Can I disable a date range using the ASP.NET AJAX RadDateTimePicker control? Thanks.

Matt
0
Tsvetina
Telerik team
answered on 07 Dec 2010, 10:27 AM
Hello Matt,

The logic offered in the CodeLibrary article is applicable for RadDateTimePicker as well. You can see this for your self by only replacing the RadDatePicker with RadDateTimePicker in the sample project attached there.

Greetings,
Tsvetina
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Calendar
Asked by
Matt Low
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Matt Low
Top achievements
Rank 1
Tsvetina
Telerik team
Share this question
or