Пример #1
0
        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;
        }
Пример #2
0
        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;
        }