Ticket #5744 (closed defect: fixed)
Tree: DnD checkItemAcceptance needs to trigger when mousing over tree
| Reported by: | guest | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.2 |
| Component: | Dijit | Version: | 1.0 |
| Severity: | normal | Keywords: | |
| Cc: |
Description (last modified by bill) (diff)
I created two trees, the second tree accepts drag and dropped items from the first one. The idea is is to be able to turn the mouseover icon red when the user is pointing at the tree without pointing at a node. Currently since checkItemAcceptance does not trigger on mouseover on the tree it DnD colors the icon green to show that dropping on the tree is allowable (which in my case it is not).
Currently when onDndDrop detects a drop on the tree it provides "null" as the target, which I use to cancel the drop. However, from the users point of view this should be an allowable drop because the icon was green while mousing over. They may even perceive this incorrectly because when you drop on an icon to the left of an item, it counts as dropping on the tree and not the item that the icon relates to.
NOTE: This ticket is not meant to append the enhancement of making the icon related to items in a tree count as part of the item, it aimed at fixing the problem of mousing out of an item and over the tree not triggering checkItemAcceptance. Another solution may be instead of triggering checkItemAcceptance, to allow us to return false for checkAcceptance and true for checkItemAcceptance and flag the icon green when checkAcceptance is false if checkItemAcceptance is true. However, I don't know if this idea follows your plans for the tree and DnD in general.