Product Bundles
DevCraft
All Telerik .NET and Kendo UI JavaScript components and AI Tools in one package.
Kendo UI
Bundle of AI Tools plus four JavaScript UI libraries built natively for jQuery, Angular, React and Vue.
Build JavaScript UI
Javascript
Telerik
Build modern .NET business apps
.Net Web
Cross-Platform
Desktop
Reporting and Documents
AI for Developers & IT
Ensure AI program success
MCP Servers
AI for UI
AI Engineering
Additional Tools
Enhance the developer and designer experience
Testing & Mocking
Debugging
UI Tools
CMS
Free Tools
Support and Learning
Productivity and Design Tools
I tired most of the examples on disabling dates on the raddatepicker control but most are out of date to the methods and properties of the latest control set. I looking for an example of how to only let SUNDAY be selected.
Thanks
I figured it out:
using you example
aspx page
<telerik:RadDatePicker RenderMode="Classic" ID="Wedate1" runat="server" AutoPostBack="true"> <Calendar OnDayRender="Wedate_DayRender"></Calendar> </telerik:RadDatePicker>
On the code behind
protected void Wedate_DayRender(object sender, Telerik.Web.UI.Calendar.DayRenderEventArgs e) { if (e.Day.Date.DayOfWeek != DayOfWeek.Sunday) { Wedate.SpecialDays.Add(DisableDay(e)); } else { e.Cell.CssClass = "blackFontClass"; } } private RadCalendarDay DisableDay(Telerik.Web.UI.Calendar.DayRenderEventArgs e) { e.Cell.CssClass = "rcOtherMonth"; return new RadCalendarDay() { Date = e.Day.Date, IsDisabled = true, IsSelectable = false, }; }