Can you define a Long Weekend?
Asked by Mike12 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]12 years ago.
You can use DayPilotNavigator.BeforeCellRender event handler to add a custom CSS class to a day cell.
http://doc.daypilot.org/navigator/cell-customization/
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.
Example:
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 1 month old and has been closed. Please create a new question if you have anything to add.