Trying to get a very basic Kanban going to show which
employees are assigned to which team.
Everything displays correctly, but when you drag an employee to another
column, it throws an error of:
constants.js:93 Uncaught TypeError: Cannot set property 'reportsTo' of undefined
at e.updateDroppedData (constants.js:93)
at e.<anonymous> (constants.js:93)
at e.notify (constants.js:93)
at t.e.trigger (constants.js:93)
at e.dragStop (constants.js:93)
at e.notify (constants.js:93)
at t.e.trigger (constants.js:93)
at t.intDragStop (constants.js:93)
The data is:
var data = [{"id":"4","display_name":"jadoe","reportsTo":"0"}]
The code is:
var kanbanObj = new ej.kanban.Kanban({
dataSource:
data,
keyField:
'reportsTo',
columns: [
{
headerText: 'Employees', keyField: '0' },
{
headerText: "jdoe", keyField: "3" },{ headerText:
"Juan De Tal", keyField: "5" }, ],
cardSettings:
{
contentField: 'display_name'
}
});
kanbanObj.appendTo('#Kanban');
Any thoughts?