Changing Background Color of Selected Row Header (Scheduler)
1 years ago.
onEventMoving: (args) => {
const dp = this.scheduler.control;
this.previousResourceId = args.e.data.resource;
const empId = args.e.data.resource.split('-')[0];
this.previousResource = empId.toString();
let Json: any = {
comP_ID: this.companyMasterId,
locid: this.locationMasterId,
dept_ID: this.selectedDept,
drP_RUN_SKILL_ID: args.e.data.drP_RUN_SKILL_ITEM_ID,
};
this.databaseHelperServiceProxy.getEmployeeSelectedSkills(Json).subscribe((data) => {
if (data && data.length > 0 && data[0].emlpoyeeWithSkill) {
this.config.resources.forEach((resource) => {
if (resource.id === 'UNCOVERED') {
return;
} else {
var EmpId = resource.id.toString().split('-')[0];
}
data[0].emlpoyeeWithSkill.forEach((skillId) => {
if (EmpId === skillId.emp_ID) {
var row = dp.rows.find(resource.id);
if (row != null) {
dp.rows.selection.add(row);
}
}
});
});
}
});
},
I have a function that adds rows to the selection in the Scheduler, which currently highlights them with a gray color. I want to change the highlight color of the selected rows. How can I do that?
DayPilot