【问题标题】:how to divide the events across different units in dhtmlx scheduler in asp.net?如何在 asp.net 中的 dhtmlx 调度程序中将事件划分为不同的单元?
【发布时间】:2012-04-09 20:09:28
【问题描述】:

您好,我正在使用 dhtmlx 调度程序。

我已经创建了单位选项卡。但我不知道如何在不同的单位之间划分事件。这是我的代码。

 this.Scheduler = new DHXScheduler();

            Scheduler.InitialDate = DateTime.Now.Date;// the initial data of Scheduler   

            var unit = new UnitsView("Employee", "EmpID");//initializes the view

            var rooms = new List<object>(){
                new { key = "1", label = "Employee1"},
                new { key = "2", label = "Employee2"},
                new { key = "3", label = "Employee3"},
                new { key = "4", label = "Employee4"},
                new { key = "5", label = "Employee5"},
                new { key = "6", label = "Employee6"}
                };

            unit.Label = "Employee";
            unit.Property = "ID";
            unit.Size = 5;

            unit.AddOptions(rooms);

            Scheduler.Views.Add(unit);

【问题讨论】:

    标签: asp.net dhtml


    【解决方案1】:

    你不需要这条线

    unit.Property = "ID";
    

    我认为事件应该通过'EmpID'属性划分为单元,该属性传递给构造函数

    【讨论】:

      猜你喜欢
      • 2015-03-30
      • 2020-05-15
      • 2018-05-25
      • 2021-10-18
      • 2019-07-27
      • 2018-08-07
      • 2019-09-30
      • 1970-01-01
      • 2012-11-23
      相关资源
      最近更新 更多