Home Unanswered Active Tags New Question

Change the BusinessBeginsHour on the fly

Hi all,

Anyone have any tricks to changing the BBH property on the fly? Example, in Day View, each day defaults to 8am start hour. However, lets say on one day there is an event at 6am. I'd like to change the BBH setting to be 6 on that day.

Is this possible?

TIA,

Brian

Asked by Anonymous 1 year ago.
Replies

As per my knowledge, it won't be straight forward. you will have to calculate the earliest event time (6 AM) in code behind. Then when you bind your control to datatable or dataset you can add below 2 lines to get your desired result.

dpCalender.BusinessBeginsHour = 6;
dpCalender.BusinessEndsHour = 18;

Hope this helps

Comment posted by Bhavesh Patel 1 year ago.
New Reply
This reply is
Your name (optional):

DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java