I’ve got two dojo.dnd.Sources with items. Whenever an item is dropped I need to persist the new order of the items in the Sources using an xhr.
Is there an dojo event or topic that is fired after an dnd operation has (successfully) finished? What would be the best way to use it?
Probably I don’t understand the problem in all details but I don’t see why you need to process events or topics. The best way to record changes is to intercept updating methods on relevant sources. Specifically you need to intercept
insertNodes()for drops or any other additions.Simple example (pseudo-code):
You can try to be smart about that and send some diff information instead of a whole list, but it is up to you to generate it — you have everything you need for that.