I am using "telerik:RadDatePicker" control. I have to enable only Sunday in the calendar displaying.
The enduser should not be able to select any other day other than Sunday.
Please help me to sort out the issue using jquery.
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Oct 9, 2013, 9:34 PM EDT
Try like this.
On the
ClientEvents-OnDayRender="OnDayRender"event,Resmi Satish112 reputationPosted Oct 10, 2013, 10:40 PM EDT
"OnDayRender" is firing only when we are changing the month and so it is not working for the current month displaying in the Raddate picker.
And also I am getting error in this line" Date.parse(args.get_date()).getDay()".
Resmi Satish112 reputationPosted Oct 10, 2013, 11:06 PM EDT
function OnDayRender(sender, args) {
var seldate = new Date(args.get_date());
var selday = seldate.getDay();
if (selday != 0) {
args.get_cell().className = "rcOutOfRange";
args.get_cell().innerHTML = "" + args.get_date()[2] + "";
args.get_cell().DayId = "";
}
So it is will disable all days other than "Sunday".It is working only when we change the months and not for the current month loaded.
Please help.
Resmi Satish112 reputationPosted Oct 14, 2013, 3:23 AM EDT
The code was working for current month also as I am calling a function onload also.
Now while checking in IE8
var seldate = new Date(args.get_date());
var selday = seldate.getDay(); is not working.
Please advice me.