Hi, I have a Scheduler on my project as following:
@(Html.EJ().Schedule("ELLCalendar")
.Width("100%")
.Height("525px")
.CurrentDate(DateTime.Today)
.CurrentView(CurrentView.Day)
.ShowWeekend(false)
.Orientation(Orientation.Horizontal)
.TimeScale(ts => ts.Enable(true).majorSlot(60).minorSlotCount(2))
.Resources(res => { res.Field("SlotId").Title("Slot").Name("Slots").AllowMultiple(true).ResourceSettings(flds => flds.Datasource(ViewBag.Slots).Text("Text").Id("id").GroupId("GroupId").Color("color")).Add(); })
.Group(gr =>
{
gr.Resources(ViewBag.Resources);
})
.AppointmentSettings(fields => fields.Datasource(Model)
.ApplyTimeOffset(false)
.Id("Id")
.Subject("Subject")
.StartTime("StartTime")
.EndTime("EndTime")
.Description("Description")
.Location("Location")
.Categorize("Categorize")
.AllDay("IsAllDay")
.Recurrence("IsRecurrence")
.RecurrenceRule("RecurrenceRule"))
.ReadOnly(ViewBag.Editable)
.StartHour(8)
.EndHour(19)
.ReadOnly(ViewBag.ReadOnly)
.EnableAppointmentResize(false)
)
Now, I want all appointments to start and end at 00th minute or at 30th minute (e.g. from 6:00am - 6:30AM, instead of 6:10 - 6:40).
How can I program so that I can enforce this?