I need some guidance on how to accomplish the following.
1. Need to bind datepicker to datatable or list
2. Then only highlight and enable the dates in that datatable or list, all other dates to be disabled
As for getting them from database, you can build server and client collections of the dates from DB and use them when executing the logic to disable certain days in the calendar.
Regards,
Tsvetina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Is there also a possibility to disable all the dates first ? E.g. DatePicker.Dates.DisablaAll
So we can set only date A and B to be enabled with the SpecialDays
thanks
gerd
0
Tsvetina
Telerik team
answered on 03 Sep 2012, 04:21 PM
Hi Gerd,
There is not such option for RadCalendar, as the month views are built on the fly, they are not initially available. One option would be to set AutoPostBack="true" for the calendar, and on the server DayRender event disable/enable dates based on DB values. To prevent the page from reloading on navigation, you could wrap the RadCalendar in a RadAjaxPanel or add it to a RadAjaxManager setting where it updates itself.
Regards,
Tsvetina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.