[editor: moving to the appropriate forum…]
Today I was experimenting with the Drag and Drop functionality and I need some help. I have one container with some items and about 14 other containers without items (all with the dojotype: dojo.dnd.Source).
Now I want to limit the items in the 14 containers to 1, so that only 1 item can be placed in that container. If there is already a item in the container the user should move that first.
I've searched the forums and the tutorials but I couldn't find a way.
Hopefully someone can help me. Thanks in advance.
Wouter

It is easy...
It is easy to do:
That worked exactly as I
That worked exactly as I wanted! You even found another thing that would give a problem (multiple item selection). Thanks alot!
Just 5 minuts after posting this reply, I found a nother problem: I can't move items back in to the original source because it contains multiple items. Is there someway to see what id the new target has?
Simple solution
Do not modify the original source, just make it "singular: true". And make sure that your item types and all source/target types match (they do by default).
You can find out the id of a container by inspecting the "node" attribute of a source.
I do not really understand
I do not really understand what you are meaning with that. Each item should be able to be placed in every source so working with types will not work.
Nevertheless I've found a solution by giving the original sources a jsID:
if(this == source){ return true; } else if(this != regiment_container_1 && this != regiment_container_2) { if(this.getAllNodes().length > 0) { return false; } }