Hi,
Thanks for sample, I was successful, but... can I use headerrows with the view different of timeline?
@(Html.EJS().Schedule("schedule").Width("100%").Height("743px")
.HeaderRows(headerRow => { headerRow.Option(HeaderRowType.Week).Template("#week-template").Add(); headerRow.Option(HeaderRowType.Date).Add(); })
.Resources(res => { res.DataSource(ViewBag.Owners).Field("OwnerId").Title("Assignee").Name("Owners").TextField("text").IdField("id").ColorField("color").AllowMultiple(true).Add(); })
.AllowDragAndDrop(false)
.AllowResizing(false)
.Readonly(true)
.CurrentView(View.Week)
.RowAutoHeight(true)
.EventRendered("onEventRendered")
.Locale("pt-PT")
.Views(view =>
{
view.Option(View.Day).DisplayName("Dia").Group(group => group.Resources(ViewBag.Resources)).Add();
view.Option(View.Week).DisplayName("Semana").Add();
view.Option(View.Month).DisplayName("Mês").Add();
view.Option(View.Agenda).DisplayName("Agenda").Add();
}
)
.Render()
)
I like this effect