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

Scheduler RowHeaderMaxWidth desirable

Asked by Tim K.
3 years 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]
3 years 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.
3 years 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]
3 years 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

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.