Dimensions in ASP.NET MVC Scheduler

The Scheduler dimensions refer to both the height and width of the entire layout, and it accepts three types of values:

  • auto
  • pixel
  • percentage

Auto Height and Width

When the height and width of the Scheduler are set to auto, the Scheduler will try as hard as possible to keep an element the same width as its parent container. In other words, the parent container that holds the Scheduler will have a width/height equal to the sum of its children. By default, the Scheduler is assigned auto values for both the height and width properties. When auto is used, the Scheduler sizes itself based on its content and the parent container, so the rendered size may vary depending on the active view (for example, Day, Week, or Month) and the available viewport.

Height and width in pixel

The Scheduler height and width will be rendered exactly as per the given pixel values. It accepts both string (for example, "650px") and number values (for example, 650). When a number is provided, the Scheduler interprets it as pixels.

Height and width in percentage

When the height and width of the Scheduler are given as a percentage, the Scheduler will be sized relative to its parent container. For the percentage values to take effect, the parent container must have an explicit (non-percentage) height or width; otherwise, the Scheduler may collapse to zero size.

NOTE

You can refer to our ASP.NET MVC Scheduler feature tour page for its groundbreaking feature representations. You can also explore our ASP.NET MVC Scheduler example to know how to present and manipulate data.

See Also