We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to iterate over Column's Items after a drop.

Can you recommend me a sensible practice how to do it. I use Kanban and I drag and drop to change status and to change order. I have no problem if I drag and drop between columns, but I have difficulty to figure out how manually persist data I drag and drop within a column to change order. I am sorting by index, which is an OrderID field in a database. I can for sure to deal with DragStop event and PreviousCardData[0].RankId but then I need to count indexes, in my case my business tasks are mapped to Kanban columns in non-trivial way and I would very easy get confused with run away indexes. I would rather loop over a column and get a list of my IDs along with new indexes, wipe out the DB OrderId for the proper items statuses and then to reseed new OrderIDs.

1 Reply

VJ Vinitha Jeyakumar Syncfusion Team February 6, 2023 02:30 PM UTC

Hi Roman,

We want to let you know that we need to bind unique field to the header Field, and we shouldn't use same fields to the sorting field and header Field. So please make sure you have used a unique field to avoid sorting issues.
If you want to get the changed records on card drag, you can get the details when using Update URL function with URL Adaptor.

Can you please share us with your exact requirement and issue you have faced along with some video or image illustration for our better understanding? What is the adaptor you have used at your end?


Live Chat Icon For mobile
Up arrow icon