Comment posted by Dan Letecky [DayPilot] 3 years ago.
This should work fine. I recommend using the browser developer tools to inspect the parent cell elements. You will be able to see why the background color doesn't apply.
The problem might be something like a global CSS that overrides the background color for parent cells using "!important".
Comment posted by Steve Lee 3 years ago.
Hi Dan
Apologies.. I listed the code I'm using, successfully, to grey out Friday afternoons.
What I'm trying to, and failing, to do is grey out the parent rows. The same rows that are targeted with
treePreventParentUsage: true,
Sorry for the confusion.
Answer posted by Dan Letecky [DayPilot] 3 years ago.
Steve,
Sorry for the confusion!
You can detect parent rows using `args.cell.isParent`:
dp.onBeforeCellRender = function (args) {
if (args.cell.isParent) {
args.cell.backColor = "#ccc";
}
};