The HeightSpec property can be set to "Parent100Pct". This will set the total Calendar height to 100% of its parent element.

In order to fill the browser window with the Calendar control, all parent elements (including <html> and <body>) must use style="height:100%".

<style type="text/css">
html, body {
  height:100%;
}
</style>

Related Topics

Examples

JavaScript Example

<div id="dpc"></div>
<script type="text/javascript">
  var dpc = new DayPilot.Calendar("dpc");
  dpc.heightSpec = "Parent100Pct";
  // ...
  dpc.init();
</script>

ASP.NET WebForms Example

<DayPilot:DayPilotCalendar
  runat="server" 
  id="DayPilotCalendar1"
  HeightSpec="Parent100Pct"
...
/>

ASP.NET MVC Example

@Html.DayPilotCalendar("dpc", new DayPilotCalendarConfig {
  BackendUrl = ResolveUrl("~/Scheduler/Backend"),
  HeightSpec = HeightSpec.Parent100Pct,
  ...
})

Java Example (JSP)

<div id="dpc"></div>
<script type="text/javascript">
  var dpc = new DayPilot.Scheduler("dpc");
  dpc.backendUrl = "${pageContext.request.contextPath}/dpc";
  dpc.heightSpec = "Parent100Pct";
  // ...
  dpc.init();
</script>