Hi All,
The calendar month view default blocktime on satyrday & sun. However, i need to unblocked specific saturday those are working day. How can i do that?
I had try the unblocktime, but no luck. Unfortunately still inactive - dimmed color & no pop up appear when i try to click on unblocktime sat.
If i mixed the days type, NOT WORKING
scheduler.blockTime(6, “fullday”);
scheduler.unblockTime(new Date(2013, 06, 20), “fullday”);
scheduler.setCurrentView();
If i used same type, then WORKING FINE
Method A:
scheduler.blockTime(new Date(2013, 06, 20), “fullday”);
scheduler.unblockTime(new Date(2013, 06, 20), “fullday”);
scheduler.setCurrentView();
Method B:
scheduler.blockTime([0,6], “fullday”);
scheduler.unblockTime(6"fullday");
scheduler.setCurrentView();
Please, is very urgent & desparate need help.
Thank you.
My source code:
scheduler.blockTime(6, "fullday");
scheduler.blockTime(0, "fullday");
var holidays2 = [];
var caps = [] ;
$.ajax({
type: "POST",
async: false,
url: "<%=Url.Content("~/Calendar/GetHoliday/")%>",
data: { 'category': 'Working Day' },
dataType: "json",
error: function (request) {
alert(request.responseText);
event.preventDefault();
},
success: function (data) {
for (var i = 0; i < data.length; i++) {
holidays2[i] = new Date(data[i].s_date_y, data[i].s_date_m, data[i].s_date_d);
}
}
});
// Exception: Setting up sat & sun working day
for (var i = 0; i < holidays2.length; i++) {
var date = holidays2[i];
//Unblock - saturday is a working day
scheduler.unblockTime (date, "fullday");
}
Regards,
Micheale