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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Resmi SatishPosted Oct 14, 2013, 7:23 AM
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.
Resmi SatishPosted Oct 11, 2013, 3:06 AM
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 SatishPosted Oct 11, 2013, 2:40 AM
"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()".
Jaganathan BantheswaranPosted Oct 10, 2013, 1:34 AM
Try like this.
On the
ClientEvents-OnDayRender="OnDayRender"event,