Opened 15 years ago

Closed 14 years ago

#1038 closed defect (wontfix)

Tree node rendering problems after moving a node (Drag-n-Drop).

Reported by: guest Owned by: ilia
Priority: high Milestone: 0.9
Component: Widgets Version: 0.3
Keywords: Cc:
Blocked By: Blocking:


Duplicate steps :

1) have following TreeMoveTest?.html implemented with TreeRPCController's RPCUrl set to local.

2) have content of move (local text file) set to true (as provided in demo).

3) have content of getChildren (local text file) set to [] (empty array).

4) load TreeMoveTest?.html in browser and expand all the tree nodes by clicking (+).

5) Drag "Node-D" and Drop it to "Node-B". You will see that it has worked well.

6) Now Drag "Node-D" and Drop it back to "Node-C". You will see a problem.

Please note that all the nodes isFolder property is set to true so it should allow above Drag-N-Drop scenario.

<!DOCTYPE HTML PUBLIC "-W3CDTD HTML 4.01EN" ""> <html> <head> <title>Dojo Tree Widget Test</title>

<script type="text/javascript">

var djConfig = {isDebug: false, debugAtAllCosts: false };


<script type="text/javascript" src="dojo-0.3.0-ajax/dojo.js"></script>

<script type="text/javascript">

dojo.require("dojo.lang.*"); dojo.require("dojo.widget.Tree"); dojo.require("dojo.widget.TreeRPCController"); dojo.require("dojo.widget.TreeSelector?"); dojo.require("dojo.widget.TreeNode?"); dojo.require("dojo.widget.TreeContextMenu?"); dojo.hostenv.writeIncludes();

</script> </head> <body>

<h2>Tree with selector events</h2>

<div dojoType="TreeRPCController" RPCUrl="local" widgetId="treeController" DNDController="create"></div> <dojo:TreeSelector widgetId="treeSelector" eventNames="select:nodeSelected"></dojo:TreeSelector> <div dojoType="Tree"

id="domainTree" selector="treeSelector" DNDAcceptTypes="domainTree" DNDMode="onto" showRootGrid="false" controller="treeController" >

<div dojoType="TreeNode?" title="Items" isFolder=true>

<div dojoType="TreeNode?" title="Node-A" isFolder=true>

<div dojoType="TreeNode?" title="Node-B" isFolder=true>

<div dojoType="TreeNode?" title="Node-C" isFolder=true>

<div dojoType="TreeNode?" title="Node-D" isFolder=true>






</div> </body> </html>

Change History (4)

comment:1 Changed 15 years ago by [email protected]


I have removed property showRootGrid="false" and observed that above mentioned problem is resolved. If I keep the property showRootGrid="false" in above example then the problem persist.

It seems that Drag-n-Drop scenario mentioned in above example does not work with property showRootGrid set to "false".

regards, Jaymin

comment:2 Changed 15 years ago by dylan

Milestone: 0.5

comment:3 Changed 14 years ago by dylan

Owner: changed from anonymous to ilia

comment:4 Changed 14 years ago by ilia

Resolution: wontfix
Status: newclosed

Won't be fixed in stable tree.

Reopen ticket if TreeV3 has such issue.

Note: See TracTickets for help on using tickets.