How to set DayPilot calendar DayBeginsHour and DayBeginsHour dynamically
Asked by Wilna 12 years ago.
Hi, how do you set the value of the DayBeginsHour and/or DayBeginsHour dynamically? cuz when I give DayBeginsHour a value that depends on the earliest event of the week, the calendar goes blank after navigating using the navigator.
Answer posted by Dan Letecky [DayPilot] 12 years ago.
Not all properties are synchronized during the CallBack update - forcing the full update using DayPilotCalendar1.Update(CallBackUpdateType.Full) doesn't help.
1. You can place the Calendar control inside an UpdatePanel and refresh it traditionally (it will be created from scratch).
2. You can change the dayBeginsHour and dayEndsHour properties on the client-side using JavaScript and call .update():