How can I drag/drop nodes within a treeview, but block the drop (or change the destination index) for some locations.
I have a treeview which is used to manage job scheduling set up with the level 0 nodes being foremen and level 1 nodes as jobs.
The job nodes at the top of the list for each foreman have a custom attribute on them to denote that it is started and they are not draggable. I need to either block dropping the unstarted jobs in the middle of the started ones or change the destination index to the first one after the last started job.
I have a treeview which is used to manage job scheduling set up with the level 0 nodes being foremen and level 1 nodes as jobs.
The job nodes at the top of the list for each foreman have a custom attribute on them to denote that it is started and they are not draggable. I need to either block dropping the unstarted jobs in the middle of the started ones or change the destination index to the first one after the last started job.