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

how to color some cells of the scheduler grid

Asked by Giorgio
9 months ago.

hello, I need to color some cells red in the left grid of the scheduler, since they have to be colored according to some constraints, how can I do it? I attach screenshot of the desired behavior

thank u

Answer posted by Dan Letecky [DayPilot]
9 months ago.

You can specify properties of the row header cells using the onBeforeRowHeaderRender event handler.

In this case, it could look like this:

onBeforeRowHeaderRender: args => {
  if (yourCriteria) {
    const column = args.row.columns[6];
    if (column) {
      column.backColor = "red";
    }
  }
}
Comment posted by Giorgio
9 months ago.

Thanks it works!!

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