Home Unanswered Active Tags New Question

Change the Back Color of Month Calendar on selected dates

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

Asked by Anonymous 2 years ago.
Replies

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";
        }
          
    }
Answer posted by Dan Letecky [DayPilot] 6 months ago.
New Reply
This reply is
Your name (optional):

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java