search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o


Asked by ScuzzLeButt
7 years ago.

Is it possible to show only business hours in daypilot lite mvc version ?
when i set BusinessBeginsHour = 7, BusinessEndsHour = 20, it just rotates the scroll bar to selected hours but then you are able to scroll up or down to unwanted hours. Can i just show the selected hours without scroll bar as you can do in webforms ?

here is my View code so far,

@Html.DayPilotCalendar("dp", new DayPilotCalendarConfig
BackendUrl = Url.Content("~/Calendar/Backend"),
ViewType = DayPilot.Web.Mvc.Enums.Calendar.ViewType.Week,
Theme = "calendar_g",
BusinessBeginsHour = 7,
BusinessEndsHour = 20,
HeightSpec = DayPilot.Web.Mvc.Enums.Calendar.HeightSpec.BusinessHours,

EventMoveHandling = DayPilot.Web.Mvc.Events.Calendar.EventMoveHandlingType.CallBack,
EventResizeHandling = DayPilot.Web.Mvc.Events.Calendar.EventResizeHandlingType.CallBack,
TimeRangeSelectedHandling = DayPilot.Web.Mvc.Events.Calendar.TimeRangeSelectedHandlingType.JavaScript,
TimeRangeSelectedJavaScript = "dp.timeRangeSelectedCallBack(start, end, { name: prompt('New Event Name:', 'New Event') });",


thanks in advance

Answer posted by Dan Letecky [DayPilot]
7 years ago.

The HeightSpec = BusinessHoursNoScroll is not available in the MVC Lite version at the moment. Most likely, it will be added in the next release.

Comment posted by ScuzzLeButt
7 years ago.

thank you for the answer. When will the next release be published if i may ask?

Comment posted by Dan Letecky [DayPilot]
7 years ago.

Probably in about a month.

This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.