Page 1 of 1

Drag from a grid demo give Javascript errors when in vertical mode

Posted: Thu Oct 10, 2019 6:52 pm
by bprescott_msd
We are using the latest version of the Scheduler control, and have run into an issue when our customers try to drag from a grid to the scheduler in vertical mode. The drag operation fails, and the developer tools console shows Javascript errors when you are dragging the item from the grid over the scheduler. Here is what the error looks like on our web site:
Uncaught TypeError: Cannot read property '0' of undefined
    at VerticalEventMapper.resolveRowRecord (scheduler.module.js:94190)
    at Scheduler.resolveResourceRecord (scheduler.module.js:88584)
    at Drag.onTaskDrag (schedulerpage.js:246)
    at Drag.trigger (scheduler.module.js:5084)
    at Drag.update (scheduler.module.js:41944)
    at Drag.internalMove (scheduler.module.js:41883)
    at Drag.onMouseMove (scheduler.module.js:41899)
    at HTMLDocument.handler (scheduler.module.js:11606)
To see this same error in action, you can just go to the "Drag from a grid demo" example page on the Bryntum web site (https://www.bryntum.com/examples/scheduler/dragfromgrid/), edit the code, and toward the bottom and add this line into the new Scheduler area:
mode: 'vertical',
Then once the scheduler changes to vertical mode, when you try to drag an item from the grid onto the scheduler, you will see the Javascript error in the dev tools console.

Re: Drag from a grid demo give Javascript errors when in vertical mode

Posted: Thu Oct 10, 2019 7:06 pm
by mats