search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Styling the rows....??

Asked by Daniel
10 years ago.

Hi!
im working with the scheduler:

want to have the row and its children in the same color.

And the parent-rows should alternately have the background-color white and gray.

Please Help! :)

Daniel

Answer posted by Dan Letecky [DayPilot]
10 years ago.

To set the color of the cells use onBeforeCellRender:

http://doc.daypilot.org/scheduler/cell-customization/

and to set the color of the row headers use onBeforeResHeaderRender:

http://doc.daypilot.org/scheduler/row-header-customization/

Answer posted by Daniel
10 years ago.

Thanks,... i know about the onBeforeCellRender.

But: how to put same background for parent AND child- rows ??

This workaround is not working correctly ("vorplanung_" are my childs...):

if(args.cell.resource.substring(0, 11)!='vorplanung_')
{
if(tmpLastColor == "#EFEEEC")
{
tmpLastColor = "#ffffff";
}
else
{
tmpLastColor = "#EFEEEC";
}
}

args.cell.backColor = tmpLastColor;

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.