Row auto height in TypeScript Schedule control

18 Nov 20181 minute to read

By default, the height of the Scheduler rows in Timeline views are static and therefore, when the same time range holds multiple overlapping appointments, a +n more text indicator will be displayed. The row auto height feature enabled, able to view all the overlapping appointments present in those specific time range by auto-adjusting the row height based on the presence of the appointments count, instead of displaying the +n more text indicators.

To enable auto row height adjustments on Scheduler Timeline views and Month view, set true to the rowAutoHeight property whose default value is false.

This auto row height adjustment is applicable only on all the Timeline views as well as on the calendar Month view.

The following sections demonstrate how this feature works on the applicable views with practical examples.

Calendar month view

By default, the rows of the calendar Month view can accommodate only the limited appointments count based on the available row height, and the rest of the overlapping appointments are indicated with a +n more text indicator. The following example shows how the month view row auto-adjusts based on the number of appointments count, when this rowAutoHeight feature is enabled.

Timeline views

When the feature rowAutoHeight is enabled in Timeline views, the row height gets auto-adjusted based on the number of overlapping events occupied on the same time range, which is demonstrated in the following example.

Timeline views with multiple resources

The following example shows how the auto row adjustment feature works on timeline views with multiple resources.

Appointments occupying entire cell

By default, when the rowAutoHeight, feature is enabled, a small space remains at the bottom of each cell after appointments are rendered. To avoid this space, the property ignoreWhitespace is set to true with in eventSettings whereas its default property value is false. In the following code example, the whitespace below the appointments has been ignored.

Note: The ignoreWhitespace property is only applicable when the rowAutoHeight feature is enabled in the Scheduler.

Refer to the JavaScript Scheduler feature tour page for its groundbreaking feature representations. Also explore our JavaScript Scheduler example to learn how to present and manipulate data.