Gets the collection of custom days.

Namespace:  C1.Web.UI.Controls.C1Calendar
Assembly:  C1.Web.UI.Controls.2 (in C1.Web.UI.Controls.2.dll)

Syntax

C#
[C1CategoryAttribute("Category.Templates")]
[JsonAttribute(true, true, null)]
[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
public C1CalendarDayCollection CustomDays { get; }
Visual Basic
<C1CategoryAttribute("Category.Templates")> _
<JsonAttribute(True, True, Nothing)> _
<PersistenceModeAttribute(PersistenceMode.InnerProperty)> _
Public ReadOnly Property CustomDays As C1CalendarDayCollection
	Get

Remarks

You can specify custom styles for specific calendar day by defining CustomDay. C1WebCalendar supports hosting templates in calendar day cells. To add template controls, you have to: 1. Click the ellipsis button right beside the DayTemplates in property grid to open the DayTemplates collection editor. 2. Add template to this collection, give proper ID. 3. Select "Edit Templates" in smart tag. To "bind" template to a calendar day, you have to: 1. Click the ellipsis button right beside the CustomDays in property grid. 2. Add CustomDay in this collection. 3. Specify the TemplateID and Date property. The TemplateID should be the ID of template added in the above steps.

See Also