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

Can you define a Long Weekend?

Asked by Mike
5 years ago.

I know there is a property that allows you to highlight the weekends a different color.

navigator_white_weekend - this is the property in the CSS that allows for this.

Is there also a property that you can define additional Holiday days. I would like to be able to define when there is a Long Weekend.

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

You can use DayPilotNavigator.BeforeCellRender event handler to add a custom CSS class to a day cell.

Note that in version 7.7 the CssClass value will be prefixed with Theme/CssClassPrefix in the CssOnly. This is not consistent with the BeforeCellRender behavior in other controls and it will be fixed in the next release.


protected void DayPilotNavigator1_BeforeCellRender(object sender, DayPilot.Web.Ui.Events.Navigator.BeforeCellRenderEventArgs e)
  if (e.Start.DayOfWeek == DayOfWeek.Friday)
      e.CssClass = "weekend";

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