Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/442.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何为devexpress计划程序应用主题_Javascript_Devexpress - Fatal编程技术网

Javascript 如何为devexpress计划程序应用主题

Javascript 如何为devexpress计划程序应用主题,javascript,devexpress,Javascript,Devexpress,我是devexpress的新手,我正在尝试实现asp.net mvc调度程序。我定义了如下调度程序 @Html.DevExpress().Scheduler( settings => { settings.Name = "scheduler"; settings.CallbackRouteValues = new { Controller = "Scheduler", Action = "GroupingPartial" }; se

我是devexpress的新手,我正在尝试实现asp.net mvc调度程序。我定义了如下调度程序

@Html.DevExpress().Scheduler(
    settings => {
        settings.Name = "scheduler";
        settings.CallbackRouteValues = new { Controller = "Scheduler", Action =  "GroupingPartial" };
        settings.ActiveViewType = SchedulerViewType.Day;
        settings.Start = new DateTime(2010, 7, 13);
        settings.Width = Unit.Percentage(100);
        settings.Views.DayView.ResourcesPerPage = 2;

        settings.Views.WorkWeekView.ResourcesPerPage = 2;

        settings.Views.WeekView.ResourcesPerPage = 2;

        settings.Views.MonthView.ResourcesPerPage = 2;

        settings.Views.TimelineView.ResourcesPerPage = 2;

        settings.GroupType = (SchedulerGroupType)Session["GroupType"];

        settings.Storage.Resources.Assign(SchedulerDemoHelper.DefaultResourceStorage);

    }).Bind(Model.Appointments, Model.Resources).GetHtml()

如何为计划程序应用主题?是否有其他代码添加到web.config文件?

要应用主题,应执行以下两个操作:

  • 注册要在应用程序中使用的主题所需的样式表文件(使用该方法注册所需的主题样式表文件)
  • 要单独将主题应用于scheduller扩展,请使用该属性(适用于DevExpress和标准ASP.NET主题方法)

  • 您可以在下面的帮助文章中阅读有关应用主题的详细说明:。

    我尝试使用新样式表{ExtensionSuite=ExtensionSuite.Scheduler,theme=“Aqua”},但没有找到Aqua主题会引发错误。@charan请确保主题存在于theme\u App项目文件夹中(要将主题文件从主题程序集复制到App_Themes文件夹,可以使用ASPxThemeDeployer工具)