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

Scheduler - How to get current cell width when cellWidthSpec is set to "Auto"

Asked by Anonymous
1 month ago.

When cellWidthSpec set to "Auto" is it possible to get the current value of cellWidth and how?

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

The calculated value is stored in cellWidth:

Comment posted by Anonymous
28 days ago.

OK, thank you. And which event should I listen too, when the cellWidth gets recalculated? is it onAfterRender, onAfterUpdate or something else?

I'm trying to implment the same zoom behaviour as show in this video:

The current automatically calculated value of cellWidth is set as the minimum value of the slider

Comment posted by Dan Letecky [DayPilot]
27 days ago.

There is no special event for that (and onAfterRender/onAfterUpdate are not fired in this case) but you can use onBeforeTimeHeaderRender to check the cellWidth value. The time header will always get re-rendered after the cell width adjustment.

New Reply
This reply is
or drop files here
Your name (optional):