@(Html.EJ().Schedule("FeatureSchedule")
.Width("100%")
.Height("700px")
.CurrentDate(DateTime.Now)
.DateFormat("dd/MM/yyyy")
.EnableAppointmentResize(false)
.Views(views)
.ShowQuickWindow(false)
.ShowWeekend(true)
.TooltipSettings(pre => pre.Enable(true))
.TimeMode(TimeMode.Hour24)
.ShowCurrentTimeIndicator(false)
.StartHour(8)
.EndHour(17)
.AgendaViewSettings(a => a.DaysInAgenda(5))
.Orientation(Orientation.Vertical)
.AppointmentTemplateId("#customWindow")
.CategorizeSettings(fields => fields.Datasource(ViewBag.CategorizeValue).Enable(true).AllowMultiple(false).Id("Id").Text("Name").Color("Color").FontColor("FontColor"))
.PrioritySettings(pri => pri.Enable(false))
.AppointmentSettings(fields => fields.Datasource(dataSource => dataSource.URL("/Calendar/GetData").BatchURL("/Calendar/Crud").InsertURL("/Calendar/add").UpdateURL("/Calendar/update").RemoveURL("/Calendar/remove").Adaptor(AdaptorType.UrlAdaptor))
.ApplyTimeOffset(false)
.Id("ScheduleID")
.Subject("Subject")
.StartTime("StartTime")
.StartTimeZone("StartTimeZone")
.EndTime("EndTime")
.EndTimeZone("EndTimeZone")
.Description("Description")
.Location("Location")
.AllDay("AllDay")
.Priority("Priority")
.Categorize("Categorize")
.Recurrence("Recurrence")
.RecurrenceRule("RecurrenceRule")
.RecurrenceId("RecurrenceId")
.RecurrenceExDate("RecurrenceExDate")
.ResourceFields("OwnerId")
)
.ScheduleClientSideEvents(evt => evt.QueryCellInfo("checkFormat")
.DragStop("onDragStop")
.BeforeAppointmentChange("onBeforeAppointmentChange")
.AppointmentChanged("onAppointmentChanged")
.AppointmentWindowOpen("onAppointmentWindowOpen")
).AppointmentTemplateId("#AppointmentTemplate")
)