您好我正在使用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);
答案 0 :(得分:0)
你不需要这一行
unit.Property = "ID";
我认为应该通过'EmpID'属性将事件划分为单位,并将其传递给构造函数