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

Change the Back Color of Month Calendar on selected dates

Asked by Anonymous
10 years ago.

How do i change the back color of the month calendar on selected dates?

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

You can use BeforeCellRender event handler:

    protected void DayPilotMonth1_BeforeCellRender(object sender, DayPilot.Web.Ui.Events.Month.BeforeCellRenderEventArgs e)
    {
        
        if (e.Start == DateTime.Today)
        {
            e.BackgroundColor = "#FFD3BD";
        }
          
    }
This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.