Hi there,
I'm doing a proof of concept with the Kanban control.
When I drag a single card into the next column, after releasing the mouse, it somehow pulls in another card from the bottom of the previous column
See video https://www.screencast.com/t/i2wYkyNL
Here is how the code is structured:
<div id='TrackBoard' style="height: 70vh;"></div>
<script>
function getTrackBoardData(){
console.log('Retrieve Kanban board data -->');
var data = $("#TrackBoard").ejKanban("instance").model.dataSource;
console.log(data);
return data;
}
function updateTrackBoardData(data){
console.log('Update Kanban board with data -->');
console.log(data)
// NOTE: Updating the Kanban board any other way results in the control not refreshing itself
$("#TrackBoard").ejKanban("dataSource", data);
}
function displayTrackBoard(data) {
$("#TrackBoard").ejKanban(
{
dataSource: data,
enableTotalCount: true,
allowTitle: true,
columns: [
{ headerText: "To Do", key: "To Do" },
{ headerText: "Blocked", key: "Blocked" },
{ headerText: "In Progress", key: "In Progress" },
{ headerText: "Review", key: "Review" },
{ headerText: "Done", key: "Done" }
],
fields: {
content: "title",
primaryKey: "key",
// tag: "Tags",
title: "key",
color: "worktype"
},
cardSettings: {
colorMapping: {
"#cb2027": "Story",
"#67ab47": "Task",
"#fbae19": "Bug"
}
},
keyField: "workstatus",
cardDragStart: function (args) {
console.log('TRACK BOARD - CARD DRAG START');
console.log(args);
},
cardDrop: function (args) {
console.log('TRACK BOARD - CARD DROP');
console.log(args);
},
actionComplete: function (args) {
console.log('TRACK BOARD - ACTION COMPLETE');
console.log(args);
},
selectionType: ej.Kanban.SelectionType.Single
});
}
</script>
Could I be doing something wrong here?
Thanks
SS