Articles in this section

How to Set Custom Table Height for Timeline Views in Angular Scheduler?

When working with a limited number of resources (for instance, 1 or 2) in the scheduler. By default, the allowVirtualScrolling property of the Scheduler sets the schedule table height to 100%. So, the table will occupy the entire height of the schedule.

To enhance the flexibility of your layout, you can override this default setting by modifying the height to auto. This adjustment allows the schedule table to adapt its height based on the content, providing a more flexible and responsive layout.

Additionally, you can use the following HTML structure to apply the CSS class:


[app.component.html]

<ejs-schedule #scheduleObj width='100%' cssClass='virtual-scrolling' height='100%' [selectedDate]="selectedDate">
</ejs-schedule>

[app.component.css]

.virtual-scrolling.e-schedule .e-timeline-view .e-resource-column-table,
.virtual-scrolling.e-schedule .e-timeline-month-view .e-resource-column-table {
  height: auto;
}

.virtual-scrolling.e-schedule .e-virtual-scroll.e-timeline-view .e-content-table,
.virtual-scrolling.e-schedule .e-virtual-scroll.e-timeline-month-view .e-content-table {
  height: auto;
}


Sample link: Irouur (forked) - StackBlitz


Output screenshot:

 




Conclusion

We hope you enjoyed learning about how to set custom table height for timeline views in Angular Scheduler.

You can refer to our Angular Scheduler feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our Angular Scheduler example to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsBoldDesk Support, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied