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

change the color

Asked by naruto
7 years ago.

I have a question.
Can I change the color of each line?
It is A, B, A, B.
Can I change the color of a cell on Sunday?

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

You can set the grid cell color using BeforeCellRender event handler.

Alternate row colors:
https://doc.daypilot.org/scheduler/alternate-row-colors/

Note that BeforeCellRender/e.X and e.Y are available since build 8.3.3573 (available in the sandbox at https://www.daypilot.org/sandbox/).

Highlighting weekends (Saturday/Sunday):
https://doc.daypilot.org/scheduler/highlighting-weekends/

Comment posted by naruto
7 years ago.

protected void DayPilotScheduler1_BeforeCellRender(object sender, DayPilot.Web.Ui.Events.BeforeCellRenderEventArgs e)
{
if (e.Y%2 == 1)

e.Y is nothing.
What is the parameter of the number of rows.

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