We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Bind Schedule Appointment to Model class


I have a Model class Work like this:

    public class Work
        public int WorkId { get; set; }

        public string WorkCode { get; set; }

        public DateTime? WorkPlanningDate { get; set; }

        public DateTime? WorkStartPlanningDate { get; set; }

        public DateTime? WorkEndPlanningDate { get; set; }

        public int WorkYear { get; set; }

        public int WorkMonth { get; set; }

        public string WorkDescription { get; set; }

        public virtual ICollection<WorkOperator> WorkOperators { get; set; }

    public class WorkOperator
        public int WorkOperatorId { get; set; }

        public int WorkId { get; set; }
        public virtual Work Work { get; set; }

        public int OperatorId { get; set; }
        public virtual Operator Operator { get; set; }

Is it possible to bind Schedule appointments so that the list of WorkOperator objects are considered as multiple resources?

Something like this:

          .CategorizeSettings(fields => fields.Datasource(ViewBag.categorize).Enable(true).AllowMultiple(false).Id("id").Text("text").Color("color").FontColor("fontColor"))
          .Resources(res =>
              .ResourceSettings(flds => flds.Datasource((IEnumerable<WorkOperator>)Model.WorkOperators).Text("text").Id("id").GroupId("groupId").Color("color")).Add();
          .Group(gr =>
          .AppointmentSettings(fields => fields.Datasource(ds => ds.Json((IEnumerable<Work>)Model).Adaptor(AdaptorType.UrlAdaptor))
        .ScheduleClientSideEvents(evt =>

Thanks in advance.

Live Chat Icon For mobile
Up arrow icon