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

Unrecognized HeightSpec value error by default settings.

Asked by Kaan
4 years ago.


I'm using lite version of calendar with mvc 5. I want to show the calendar only working hours. So my here is my code which throws above error. Any idea?

@Html.DayPilotCalendar("dpc", new DayPilotCalendarConfig
BackendUrl = Url.Action("Backend", "WeekReport"),
ViewType = ViewType.Week,
EventMoveHandling = EventMoveHandlingType.CallBack,
EventResizeHandling = EventResizeHandlingType.CallBack,
TimeRangeSelectedHandling = TimeRangeSelectedHandlingType.JavaScript,
HeightSpec = DayPilot.Web.Mvc.Enums.Calendar.HeightSpec.BusinessHours,
BusinessBeginsHour = 7,
BusinessEndsHour = 20,
Days = 5,
TimeRangeSelectedJavaScript = "dpc.timeRangeSelectedCallBack(start, end, null, { name: prompt('New Event Name:', 'New Event') });"

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