I have a tree with multiple levels, and each level has different types of nodes, e.g.:
- Territory1
- - Country 1
- - - City 1
- - - City 2
- - Country 2
- - - City 3
- - - City 4
I want to enable reordering using DD, but only within each level. For example, dragging City1 should only work within Country1. Dragging Country1 should only work under Territory1.
Likewise, I would like to enable drop from another tree only into a specific level, e.g. dragging a city into the tree should allow it to drop only under a country node.
Is this possible?
Aucun commentaire:
Enregistrer un commentaire