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.