Thanks for your update.
We have prepared a sample for your requirement “background color for row“ which can be download from the below location:
By default, cell(s) can be customized using QueryCellInfo
feature, kindly visit the below link to know more about the feature. In the above sample initially cells background colors are changed using QueryCellInfo
event.
When an appointment/cell is clicked, particular cell’s background color is applied to an appointment window’s background. Kindly refer to the following code example used in the above sample.
<Code>
function bgColor() { // this function will be called when the appointment/cell is clicked/double clicked
if (StartTime.getHours() >= 9 && StartTime.getHours() < 12) {
$("#customWindow_wrapper").children().css("background-color", "#ffe9cc");
$("#customWindow").css("background-color", "#ffe9cc");
$("#Schedule1AppointmentQuickWindow_wrapper").css("background-color", "#ffe9cc");
$("#Schedule1AppDetailsWindow_wrapper").css("background-color", "#ffe9cc");
}
else if (StartTime.getHours() >= 12 && StartTime.getHours() < 15) {
$("#customWindow_wrapper").children().css("background-color", "#ebf1c4");
$("#customWindow").css("background-color", "#ebf1c4");
$("#Schedule1AppointmentQuickWindow_wrapper").css("background-color", "#ebf1c4");
$("#Schedule1AppDetailsWindow_wrapper").css("background-color", "#ebf1c4");
}
else if (StartTime.getHours() >= 15 && StartTime.getHours() < 18) {
$("#customWindow_wrapper").children().css("background-color", "#dcf1f8");
$("#customWindow").css("background-color", "#dcf1f8");
$("#Schedule1AppointmentQuickWindow_wrapper").css("background-color", "#dcf1f8");
$("#Schedule1AppDetailsWindow_wrapper").css("background-color", "#dcf1f8");
}
else {
$("#customWindow_wrapper").children().css("background-color", "");
$("#customWindow").css("background-color", "");
$("#Schedule1AppointmentQuickWindow_wrapper").css("background-color", "");
$("#Schedule1AppDetailsWindow_wrapper").css("background-color", "");
}
}
</Code>
If we have misunderstood your requirement or else if the above sample doesn’t satisfy your requirement, kindly share the image/video demo/code example which clearly depicts your requirement.
Regards,
Karthigeyan