Home Unanswered Active Tags New Question

Displaying business hours in the Scheduler eg 9-5

Is it possible for the scheduler to display the hours of 9am - 5pm instead of 12AM - 12pm programatically as many of our clients will have different start and finish times so we need to set the values of the clients times so it fits in with their business?

Thanks
Asked by Anonymous 4 years ago.
Replies
Yes, it's possible by changing BusinessBeginsHour and BusinessEndsHour properties (they can be set even programmatically). This will apply to all rows/resources. If you need custom business hours you can do it in BeforeCellRender event handler (modify IsBusiness or BackgroundColor properties for each cell).
Comment posted by Dan Letecky 4 years ago.

Dan,

I have changed the BusinessBeginsHour and BusinessEndsHour to my required ours (9-5) and but I am still seeing the hours before 9 and after 5. All that seems to do is change the colour of the background between those hours.


Comment posted by Tom 4 years ago.
Oh, I see. No, it's not possible to hide the non-business hours. The time scale is uninterrupted and shows every minute between StartDate and StartDate + Days. The only option is to show the non-business hours in a different color.
Comment posted by Dan Letecky 4 years ago.

This may be a good idea to add to the product.

Regards

Andrew

Comment posted by Anonymous 4 years ago.
This should be allowed in 4.4 release.
Comment posted by Dan Letecky 4 years ago.
This option is now available in DayPilotSchedulerDynamic control. See also:
Comment posted by Dan Letecky 4 years ago.
Answer posted by Dan Letecky [DayPilot] 10 months ago.
New Reply
This reply is
Your name (optional):

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