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
14 years ago.

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

Answer posted by Dan Letecky [DayPilot]
12 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 1 months old and has been closed. Please create a new question if you have anything to add.