public Calendar(ViewContext viewContext, IClientSideObjectWriterFactory clientSideObjectWriterFactory, IUrlGenerator urlGenerator, ICalendarHtmlBuilderFactory rendererFactory) : base(viewContext, clientSideObjectWriterFactory) { UrlGenerator = urlGenerator; ScriptFileNames.AddRange(new[] { "telerik.common.js", "telerik.calendar.js" }); ClientEvents = new CalendarClientEvents(); SelectionSettings = new CalendarSelectionSettings { Dates = new List<DateTime>() }; MinDate = new DateTime(1899, 12, 31); MaxDate = new DateTime(2100, 1, 1); Value = null; this.rendererFactory = rendererFactory; }
public Calendar(ViewContext viewContext, IClientSideObjectWriterFactory clientSideObjectWriterFactory, IUrlGenerator urlGenerator, ICalendarHtmlBuilderFactory rendererFactory) : base(viewContext, clientSideObjectWriterFactory) { UrlGenerator = urlGenerator; ScriptFileNames.AddRange(new[] { "telerik.common.js", "telerik.calendar.js" }); ClientEvents = new CalendarClientEvents(); SelectionSettings = new CalendarSelectionSettings { Dates = new List <DateTime>() }; MinDate = new DateTime(1899, 12, 31); MaxDate = new DateTime(2100, 1, 1); Value = null; this.rendererFactory = rendererFactory; }
/// <summary> /// Initializes a new instance of the <see cref="CalendarSelectionSettingsBuilder"/> class. /// </summary> /// <param name="settings">The selection settings.</param> /// <param name="viewContext">The view context.</param> public CalendarSelectionSettingsBuilder(CalendarSelectionSettings settings, ViewContext viewContext) { this.viewContext = viewContext; this.settings = settings; }
/// <summary> /// Initializes a new instance of the <see cref="CalendarSelectionSettingsBuilder"/> class. /// </summary> /// <param name="settings">The selection settings.</param> /// <param name="viewContext">The view context.</param> public CalendarSelectionSettingsBuilder(CalendarSelectionSettings settings, ViewContext viewContext) { this.viewContext = viewContext; this.settings = settings; }