Revert card to original position when you get an error message

Hello, I have kanban implemented in a project, that depending on the status (column) that changes, there is a need to open a modal to add information, but I would like that the moment I click cancel in the modal, the card does not go to the new ID (it already does not change status in the database), but I need to do this also on screen. I would also like to know if there is any possibility for the card to change status immediately, and if there is an error in the backend, it would revert. Currently I change columns (status), and the card gets stuck until I get the success response.

Thanks.


1 Reply

BS Buvana Sathasivam Syncfusion Team May 20, 2022 01:50 PM UTC

Hi Francisco,


Greetings from Syncfusion support.


Currently, we have opened the modal dialog when double clicking the card and also provided the option to change the status of the card when clicking the save button. If you click the cancel button, the card will move to the previous position. If there is anything wrong on your server side, it will trigger the ActionFailure event when you are using Kanban binding as remote data. 


Documentation: https://ej2.syncfusion.com/aspnetmvc/documentation/kanban/data-binding#handling-http-error


Can you please share more information about your requirements?

  • Are you using local or remote data binding?
  • Do you wish to open a modal dialog when you drag and drop the card or double click the card?
  • Can you please share more detailed information about your requirements or else share the video with your expected information??


Regards,

Buvana S


Loader.
Up arrow icon