2012-03-26 1 views
0

こんにちは、私はdhtmlxスケジューラを使用しています。asp.netの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

私はイベントがコンストラクタ

に渡され、「EmpIDを」プロパティによって単位に分けされるべきだと思う

unit.Property = "ID"; 

この行は必要ありません。

関連する問題