使用Razor引擎的用于ASP.NET MVC的DevExpress Scheduler-新的应用形式
本文关键字:Scheduler- 应用 DevExpress NET 引擎 Razor 用于 ASP 使用 MVC | 更新日期: 2023-09-27 17:58:33
我正在使用DevExpress for ASP.NET MVC(使用Razor引擎),我想构建一个显示Scheduler的页面。显示它没有问题,但当我想创建新的约会(右键单击日期,然后单击"新约会")时,我的网页不会显示"新约会表"。以下是我为了显示我的调度器所做的(我已经遵循了本教程:ASP.NET MVC的调度器控制)
@Html.DevExpress().Scheduler(
settings => {
settings.Name = "scheduler";
settings.CallbackRouteValues = new { Controller = "Home", Action = "SchedulerPartial" };
settings.EditAppointmentRouteValues = new { Controller = "Home", Action = "EditAppointment" };
settings.Storage.Appointments.Assign(AstellasHDJ.SchedulerDataHelper.DefaultAppointmentStorage);
settings.Storage.Resources.Assign(AstellasHDJ.SchedulerDataHelper.DefaultResourceStorage);
settings.OptionsCustomization.AllowAppointmentCreate = DevExpress.XtraScheduler.UsedAppointmentType.All;
settings.OptionsCustomization.AllowAppointmentEdit = DevExpress.XtraScheduler.UsedAppointmentType.All;
settings.OptionsCustomization.AllowAppointmentDelete = DevExpress.XtraScheduler.UsedAppointmentType.None;
settings.Storage.EnableReminders = true;
settings.ActiveViewType = SchedulerViewType.Timeline;
settings.Start = new DateTime(2012, 4, 18);
}).Bind(Model.Appointments, Model.Resources).GetHtml()
你们知道吗?
我认为您缺少Render Partial
视图,该视图将保存您的自定义表单。您可以使用带有自定义表单的调度器检查"DevExpress"演示。希望这能有所帮助。