- Home
- Forum
- JavaScript - EJ 2
- Kanban board card positions not updated after using drag drop on multiple cards
Kanban board card positions not updated after using drag drop on multiple cards
Hi,
I am trying to get the Kanban to always show the latest data after I drag and drop a card. It seems to lose track of the changes after dragging multiple cards on the kanban. This results in the kanban showing the old position for the most recently dragged card.
My steps to reproduce:
- load kanban and drag a card to a new column. wait for kanban to refresh.
- repeat this around 4 times. Eventually the Kanban will refresh but the most recently dragged card will not have the correct column.
It seems to send an edit request and then display the updated data after that returns. I noticed it also sends a 2nd request to Get data which doesn't seem to do anything when it returns. Could you clarify what is happening here?
I tried manually refreshing the kanban after editing in the dataBound event, but it does not pass up the query with the request when I refresh.
This is my datasource:
Query:
We have validated your reported query from our end, but unfortunately, we could not reproduce the issue from our end.
- If possible, modify the above sample to reproduce the issue.
- Share the used code snippets of the Kanban control.
- Any video reference for issue reproducing scenario.
- The exact package version you are using.
Query : It seems to send an edit request and then display the updated data after that returns. I noticed it also sends a 2nd request to Get data which doesn't seem to do anything when it returns. Could you clarify what is happening here?
Hi,
I was able to recreate my issue with your demo. I added logic to the dataBound setting to set the column header text to a custom calculation based on a model property. This causes the kanban to become out of sync after a few edits.
https://stackblitz.com/edit/vbjnjk-ww8tnk?file=index.ts
Yes, the second GetData request does get the data, but I am confused as to why it does this. The kanban has already refreshed before this request is sent. In the demos and your sample, the edit request also gets the latest data and returns it. I have tested returning null and the kanban still refreshes fine.
So it seems like the kanban refreshes using local data, and then unnecessarily gets the data twice from the server.
The reason I have noticed this is because of the above issue where my kanban is showing incorrect data. And when I investigated the second GetData request, it is returning the correct data, but the kanban does not reflect this. Does this mean the kanban only shows data that has been manipulated on the client, and I need a fullrefresh the browser to use the data from the server?
Hi Gunasekar,
Has this patch now been released?
Hi Gunasekar,
I have got version 19.3.46 and nothing has changed functionality-wise? I tested the above example again and the issue is still there.
https://www.syncfusion.com/downloads/support/forum/169010/ze/Issue475528520
Still, If you facing the above issue, please follow the below steps to install the latest package on your machine.
- Open the project root folder and delete the @syncfusion folder inside the node_modules folder.
- Also, delete the package-lock.json from the root path.
- Open the package.json file and, and edit the @syncfusion/ej2-kanban package version to a higher version
|
"@syncfusion/ej2-angular-richtexteditor": "19.3.46" |
- Open the Command prompt and run the npm install command.
Hi Gunasekar,
Sorry, I must not have updated correctly. The kanban data is now correctly staying in sync with the edit actions.
Thanks for that.
I have noticed a new bug from this update. After you drag and drop a card, the column header template seems to reset to default and ignore the template. I can't replicate this in StackBlitz because it won't let me download the latest version of ej2.
- If possible, please modify the above sample to reproduce the issue.
- Any video reference for issue reproducing case.
- Share with us the Kanban rendered code snippets.
Regards,
- 10 Replies
- 2 Participants
-
MM Martin McSharry
- Sep 21, 2021 06:05 AM UTC
- Oct 22, 2021 09:44 AM UTC