hide non business hours with fixed height Calender
Asked by Bhavesh Patel 16 years ago.
Hi,
I am using DayPilot 5.6.1820.0 Pro version. I have DayPilotCalender(DPC) with HeightSpec="BusinessHoursNoScroll" and BusinessBeginsHour="6" and BusinessEndsHour="22". I have events of 10 to 20 mins for everyday for abovespecified time.
Now my problem is DPC is becoming too long that when user scrolls down(IE Scrollbar)to view event at 8:00PM, User can't see the Header (Date). So i tried all possible values from here http://www.daypilot.org/control-height-and-business-hours-heightspec.html and none gave me desired result. What I want is to keep non business hours hidden(Hide 00:00 to 6:00 & 22:00 to 24:00 completely as there is no events on that time range)and still shows scrollbar with header floating. Is this even possible with current version? Is it possible in any new version?
But my issue is not autoscrolling to the earliest event of the day, I need to hide NonBusinessHours(Hide 00:00 to 6:00 & 22:00 to 24:00 completely as there is no events on that time range) and still show the scrollbar with header floating.
Dan Letecky, can you please put some light on it? Is it even going to possible in any upcoming release?
There is no trick to do this at the moment. However, since this is a common request, I would like to add it in one of the future releases. I need to check how difficult the change is.
At this moment you can change the first visible hour using DayBeginsHour but it will still show the following 24 hours. What you would need is something like DayEndsHour to limit the visible range in addition to the viewport area defined using BusinessHours* and HeightSpec="BusinessHours".
Answer posted by Dan Letecky [DayPilot] 15 years ago.
DayEndsHour property will be available in DayPilot Pro for ASP.NET 6.5 release: