Hello.
In my scheduler I am using timeScale with majorSlot set to 30 and minorSlotCount set to 3, so I can display label with 30 minutes interval.
This causes to display a table with 144 cells.
When I was trying to apply a cell template, I noticed that every cell in day view from 12 p.m. to midnight displayed error:
'Error: Cannot read property '0' of undefined'
Similar situation occured in week and work week views.
I've tried to debug this bug myself thinking it originated in my code, but eventually I found the cause in ej.schedule.js _getUserWorkCellsTemplate function.
In this function number of cells per hour in schedule is calculated using only minorSlotCount (tdCount variable).
The code assumes that majorSlot must be set to 60, so it generates templates for only half of the total cell count (in my case for 72 cells instead of 144).
I've attached code sample which shows this bug.
Thank you for your attention.
Regards,
Zbigniew
Attachment:
cellTemplateError_1e70371a.zip