Editing one card returns all the ones below as changed

Hi,

I've seen that when the first card of a column is edited, on the actionComplete - cardChanged event, all the cards below are returned even though they have not been modified.

This behavior causes us to perform a lot of useless requests because there is no way (or at least we haven't found any) to know if the card has actually been modified or not. Any ideas on how to differentiate this?


You can test the behavior I am telling you about here: https://stackblitz.com/edit/nm6rfe-1wn6pt?file=package.json,index.ts, just edit the "Task 1" and you will see in the console that all the cards below that one are returned, when in fact, they have not been modified.


I post this here instead of the bug report because I don't know if it is a bug or it is intentional.


Thanks


1 Reply

VJ Vinitha Jeyakumar Syncfusion Team September 28, 2022 09:09 AM UTC

Hi Sergi,


We want to let you know that this is the behavior of the Kanban control. When using index sort settings with the RankId field, It will update all the cards behind the editable card based on the modified index of the column in the actionComplete event. To achieve your requirement to get the data of the only edited card, you can use the dialogClose event. Please review the code and sample below.

Code snippet:
let kanbanObjKanban = new Kanban({
  ......
   ......
  dialogClose: dialogClose,
});
kanbanObj.appendTo('#Kanban'); //Render initialized Kanban control

function dialogClose(args) {
  console.log(args.data);
}




Regards,
Vinitha



Loader.
Up arrow icon