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

Rowspan undefined with collapsed resources and multiple columns

Asked by John C
2 years ago.

Using this exact example (https://javascript.daypilot.org/demo/scheduler/rowheadercolumns.html), if you change the initial resource expanded property to false, you will receive the following error:

daypilot-all.debug.js?v=2022.2.5332:50736
Uncaught TypeError: Cannot read properties of undefined (reading 'rowspan')
at DayPilot.Scheduler._drawRow (daypilot-all.debug.js?v=2022.2.5332:50736:34)
at DayPilot.Scheduler._drawResHeadersProgressive (daypilot-all.debug.js?v=2022.2.5332:50252:30)
at DayPilot.Scheduler._updateAfterRowChange (daypilot-all.debug.js?v=2022.2.5332:62413:22)
at draw (daypilot-all.debug.js?v=2022.2.5332:51164:26)

What is happening here?

Code is attached.

Answer posted by Dan Letecky [DayPilot]
2 years ago.

This should be already fixed in the latest version (which is now 2022.3.5384).

Please let me know if the problem persists.

Comment posted by John C
2 years ago.

Updated and resolved. Thanks, Dan.

Comment posted by Dan Letecky [DayPilot]
2 years ago.

Great, thanks for the update!

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