I m trying to add resources from the server. Is this possible.
I tried passing a Ienumerable from the viewmodel to bindto, but got error above.
I tried using read on resouces , I do not get an error but colors not showing up
Any example on how to do this? I think I am lost here
What I have so far.
I tried passing a Ienumerable from the viewmodel to bindto, but got error above.
I tried using read on resouces , I do not get an error but colors not showing up
Any example on how to do this? I think I am lost here
What I have so far.
@code
Dim s As Kendo.Mvc.UI.Scheduler(Of BO.Models.Bookings.BookingEvent) = Html.Kendo().Scheduler(Of BO.Models.Bookings.BookingEvent)() _
.Name("scheduler") _
.Date(Date.Today) _
.StartTime(Date.Today.AddHours(7)) _
.Height(600) _
.Timezone("America/Phoenix").Resources(Function(resource) resource.Add(Function(m) m.TeamId) _
.Title("Owner") _
.DataTextField("Name") _
.DataValueField("TeamId") _
.DataColorField("Color") _
.DataSource(Function(d) d.Read("resouces", "services", New With {.area = String.Empty}))) _
.Views(Sub(views)
views.DayView()
views.WeekView(Function(weekView) weekView.Selected(True))
views.MonthView()
views.AgendaView()
End Sub) _
.DataSource(Function(d) d.Model(Sub(m)
m.Id(Function(f) f.BookingId)
m.Field(Function(f) f.TeamId).DefaultValue(1)
End Sub) _
.Read("read", "services") _
.Create("Create", "Scheduler") _
.Destroy("Destroy", "Scheduler") _
.Update("Update", "Scheduler"))
s.Render()
End Code