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

Scheduler RowHeaderMaxWidth desirable

Asked by Tim K.
1 month ago.

Hello,
for our Scheduler Row-Header we use the properties rowHeaderWidthAutoFit and rowHeaderWidthAutoFitShrink.
Unfortunately it`s possible that the data in the row-header can be very wide, as you can see in the attached screenshot.

We would be grateful if you could implement something like a "rowHeaderMaxWidth"-option, to restrict the width that the Row-Header could grow to in one line. The data should then break in the next line(s).

used version: 2021.1.4895

Answer posted by Dan Letecky [DayPilot]
1 month ago.

You can achieve this using CSS - specify max-width for the row header text:

.scheduler_default_rowheader_inner_text {
  max-width: 100px;
}
Comment posted by Tim K.
1 month ago.

This works, but now the row header isn`t high enough to display all text-lines. Is there a possibility to set rowHeaderHeight to "auto"?
By increasing the eventHeight value, the row-header-text is displayed in full. But we don`t want to increase this, because our events should stay thin like on the screenshot.

Comment posted by Dan Letecky [DayPilot]
1 month ago.

The row height is derived from the event height and you can also override it manually using resources[].minHeight (see also https://api.daypilot.org/daypilot-scheduler-resources/). But it's not possible to use "auto" height based on the the text content of the header.

You might want to take a look at the row header scrollbar which will let you use wide row header content without disrupting the main grid size:
https://javascript.daypilot.org/demo/scheduler/rowheaderscrolling.html

New Reply
This reply is
Your name (optional):