suicidaltendencies
Programmer
How do you disable a day selection inside the day render event?
Thanks,
Harold
Thanks,
Harold
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
private void myCalendar_DayRender(object sender, System.Web.UI.WebControls.DayRenderEventArgs e)
{
// to disable all days selection
e.Cell.Text = e.Day.DayNumberText;
// to disable today's selection only
if(e.Day.Date == DateTime.Today)
{
e.Cell.Text = e.Day.DayNumberText;
}
}