Gets the template collection.

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

Syntax

C#
[C1CategoryAttribute("Category.Templates")]
[PersistenceModeAttribute(PersistenceMode.InnerProperty)]
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Content)]
[NotifyParentPropertyAttribute(true)]
[DefaultValueAttribute(null)]
public C1CalendarDayTemplateCollection DayTemplates { get; }
Visual Basic
<C1CategoryAttribute("Category.Templates")> _
<PersistenceModeAttribute(PersistenceMode.InnerProperty)> _
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Content)> _
<NotifyParentPropertyAttribute(True)> _
<DefaultValueAttribute(Nothing)> _
Public ReadOnly Property DayTemplates As C1CalendarDayTemplateCollection
	Get

Remarks

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