在SchedulerControl中自定义事件中的ResourceId 赋值没有效果
在自定义事件中用 AppointmentMappingInfo mappings = this.schedulerStorage1.Appointments.Mappings;
  mappings.Start = "StartTime";
  mappings.End = "EndTime";
  mappings.Subject = "Subject";
  mappings.AllDay = "AllDay";
  mappings.ResourceId = "ResourceId";
这样来绑定我给其对象的其他属性赋值事件上时有变化的 唯独给 ResourceId赋值的时候其中的ResourceId一直都是None
哪位大神指点下啊

解决方案 »

  1.   

    我建议你看一下这个控件自带的Demo的代码,会有很大收获的。
      

  2.   

    建议上 dev的官网:http://www.devexpress.com/Support/Center/
      

  3.   

    this.schedulerControl1.Views.MonthView.CompressWeekend = false;
                this.schedulerControl1.Start = DateTime.Now.AddDays(-7);
                DevExpress.XtraScheduler.Resource res = new DevExpress.XtraScheduler.Resource("1", "");
                this.schedulerStorage1.Resources.Items.Add(res);            DevExpress.XtraScheduler.Appointment appoint = new DevExpress.XtraScheduler.Appointment();
                appoint.Subject = "21:00     dsadsad";
                appoint.Start = DateTime.Now;
                this.schedulerStorage1.Appointments.Add(appoint);
                appoint = new DevExpress.XtraScheduler.Appointment();
                appoint.Subject = "21:00     dsadsad";
                appoint.Start = DateTime.Now.AddDays(1);
                this.schedulerStorage1.Appointments.Add(appoint);            appoint = new DevExpress.XtraScheduler.Appointment();
                appoint.Subject = "21:00     dsadsad";
                appoint.Start = DateTime.Now.AddDays(1);
                this.schedulerStorage1.Appointments.Add(appoint);