We have around 15 rooms in our building and we are using the Scheduler to show the room bookings. I'm using the resources feature to group by RoomID and show the calendar by Room. It works fine and displays correctly in the Day view but since there are 15 rooms, the week/month views are cramped so I was wondering if I can use the resources feature and grouping for the Day view and remove them for the Week/Month views. Is that possible?
@(Html.Kendo().Scheduler<
SchedulerViewModel
>()
.Name("Scheduler")
.Date(DateTime.Today)
.AllDaySlot(true)
.Group(g => g.Resources("RoomID").Date(true))
.Editable(w => w.Update(false).Create(false).Destroy(false))
.Views(views =>
{
views.DayView(weekView => weekView.StartTime(06, 00, 00).EndTime(19, 00, 00).Selected(true));
views.WeekView(weekView => weekView.StartTime(06, 00, 00).EndTime(19, 00, 00));
})
.AutoBind(false)
.Resources(resource =>
{
resource.Add(m => m.RoomID)
.DataTextField("Text")
.DataValueField("Value")
.DataSource(d => d.Read(read => read.Action("GetRooms", "DataSource")));
})
.DataSource(d => d
.Model(m =>
{
m.Id(f => f.RoomID);
m.Id(f => f.Id);
m.Field(f => f.Start);
m.Field(f => f.End);
})
.Read(read =>
read.Action("GetCalendarSchedule", "DataSource")
)
))
)