Disabling dates in client side Calender control

  • Thread starter Thread starter ivsvarma
  • Start date Start date
I

ivsvarma

I have the requirement with regards to Calender control, where in
certain Dates needs to be disabled on the control load itself.

Thanks! in advance.
 
I have the requirement with regards to Calender control, where in
certain Dates needs to be disabled on the control load itself.

protected void MyCalendar_DayRender(object source, DayRenderEventArgs e)
{
if (e.Day.Date.Day == 18)
{
e.Cell.Controls.Clear();
e.Cell.Text = e.Day.DayNumberText;
}
}
 
Back
Top