|
queryCellInfo: "textCustomization",
function textCustomization(args) {
if (args.requestType == "appointment" && args.model.currentView == "month") {
if (args.appointment.StartTime.getDay() == 6) {
var textDiv = args.element.find(".e-apptext");
textDiv.css("text-decoration", "line-through");
}
}
} |
|
<input type="button" id="setDT" onclick="test()" value="Click Here" />
function test() {
var dManager = [{
Id: 109,
Subject: "Bering Sea Gold",
StartTime: new Date(2014, 4, 6, 11, 00),
EndTime: new Date(2014, 4, 6, 13, 00),
Description: "",
AllDay: false,
Recurrence: false
}];
var scheduleObj = $("#Schedule1").data("ejSchedule");
scheduleObj.option("appointmentSettings.dataSource", dManager);
} |