Aspx 调度程序中缺少程序集引用



我正在尝试学习 Devexpress 调度,当我做他们的演示代码时,这个命名空间中发生了缺少程序集引用错误

使用DevExpress.Web.Demos;

我尝试的代码是

    using System;
using System.Web.UI;
using DevExpress.Web.ASPxScheduler;
using DevExpress.Web.Demos;
using System.Web.UI.WebControls;
public partial class Miscellaneous_DateNavigator : System.Web.UI.Page {
    protected void Page_Init() {
        DemoHelper.Instance.ControlAreaMaxWidth = Unit.Percentage(100);
    }
    protected void Page_Load(object sender, EventArgs e) {
        SchedulerDemoUtils.ApplyDefaults(this, ASPxScheduler1);
        SchedulerDemoUtils.ApplyWorkTime(this, ASPxScheduler1);
        DataHelper.SetupDefaultMappings(ASPxScheduler1);
        DataHelper.ProvideRowInsertion(ASPxScheduler1, myDataSource);
        DataHelper.SetupStatuses(ASPxScheduler1);
        DataHelper.SetupLabels(ASPxScheduler1);
        ASPxScheduler1.DataBind();
        ApplyDateNavigatorProperties();
    }
    void ApplyDateNavigatorProperties() {
        DateNavigatorProperties props = ASPxDateNavigator1.Properties;
        props.BoldAppointmentDates = chkBoldAppointmentDates.Checked;
        props.ShowTodayButton = chkShowTodayButton.Checked;
        props.ShowWeekNumbers = chkShowWeekNumbers.Checked;
        ASPxScheduler1.ApplyChanges(ASPxSchedulerChangeAction.NotifyVisibleIntervalsChanged);
    }
}

DemoHelper 和 SchedulerDemoUtils 显示错误消息

我用谷歌搜索并询问了他们的团队,但没有得到任何东西。为什么会这样?我该如何解决它

据我所知,您已经从 DevExpress 在线演示中复制了代码片段:>日期导航器演示模块的计划。
如果是这样,与demo-shell基础设施相关的DataHelperDemoHelperSchedulerDemoUtils类应该包含在你自己的项目中。

根据 Contol 演示帮助文章,您可以在本地找到相关的源代码:

用于技术演示的解决方案文件(包含 C# 和 VB.NET 源代码( 包含在安装中 – 演示如何使用 DevExpress 控件。从相应目录运行解决方案 查看特定演示的源代码 ("C:\Users\Public\Documents\DevExpress demos 17.2\Components..."(。

因此,请查看示例项目目录中的类似...ASPxSchedulerCSApp_CodeSchedulerDemoUtils.cs的内容。无论如何,我建议您直接联系DevExpress支持。根据我的经验,他们的人非常快速且乐于助人。

相关内容

最新更新