protected void Page_Init(object sender, EventArgs e)
        {
            IDateTimeNavigationService service = ASPxScheduler1.GetService(typeof(IDateTimeNavigationService)) as IDateTimeNavigationService;

            ASPxScheduler1.RemoveService(typeof(IDateTimeNavigationService));
            ASPxScheduler1.AddService(typeof(IDateTimeNavigationService), new MyDateTimeNavigationService(ASPxScheduler1, service));
        }
 protected override void OnInit(EventArgs e)
 {
     base.OnInit(e);
     CreateTimeRulerFormatStringService();
     ASPxScheduler1.RemoveService(typeof(ITimeRulerFormatStringService));
     ASPxScheduler1.AddService(typeof(ITimeRulerFormatStringService), customTimeRulerFormatStringService);
 }
コード例 #3
0
    protected override void OnInit(EventArgs e)
    {
        base.OnInit(e);
        CreateAppointmentFormatStringService();
        CreateTimeRulerFormatStringService();
        CreateHeaderCaptionService();
        CreateHeaderToolTipService();


        ASPxScheduler1.RemoveService(typeof(IAppointmentFormatStringService));
        ASPxScheduler1.AddService(typeof(IAppointmentFormatStringService), customAppointmentFormatStringService);

        ASPxScheduler1.RemoveService(typeof(ITimeRulerFormatStringService));
        ASPxScheduler1.AddService(typeof(ITimeRulerFormatStringService), customTimeRulerFormatStringService);

        ASPxScheduler1.RemoveService(typeof(IHeaderCaptionService));
        ASPxScheduler1.AddService(typeof(IHeaderCaptionService), customHeaderCaptionService);

        ASPxScheduler1.RemoveService(typeof(IHeaderToolTipService));
        ASPxScheduler1.AddService(typeof(IHeaderToolTipService), customHeaderToolTipService);
    }