Login Register

TreeNodes

Tree node moved on itself. Bug or feature ;-) ?

Hi all,

I use dijit._tree.dndSource with a dijit Tree, and I am wondering why there is no check to avoid a node to be moved (DnD) on itself??
This of course may be avoided using "checkAcceptance" to check if item is within the selection.
But as in all case the drop will failed and the items will be without parent, will it be possible (sorry for my English) to definitively include this check within onMouseOver method of the dijit._tree.dndSource ?

Regards

Catch an after expand event on tree nodes

Is there a way to catch an after expand event on tree (dojo 1.0.2) nodes ?
So far i tried to connect to onEnd event

_setChildren: function(/* Object[] */ childrenArray){
...
if(this.containerNode && !this._wipeIn){
	this._wipeIn = dojo.fx.wipeIn({node: this.containerNode, duration: 150});
	this._wipeOut = dojo.fx.wipeOut({node: this.containerNode, duration: 150});

        // here i try to connect to _afterExpand
	dojo.connect(this._wipeOut, "onEnd", this, "_afterExpand"); 
}
...
}
_afterExpand: function(){
// do somethimg
},

problem refering to programmatically created TreeNodes (dojo.byId) [solved]

I create TreeNodes programmatically with arrays sent over by Ajax. They can include id/objectId information, but the id information in the array isn't applied to the created nodes, so I problems refering to the programmatically created Nodes with dojo.byId or document.getElementById.
Solved for myself by changing createNode in my TreeV3 Extension, but maybe the createSimple function should already do this (filed an enhancement request)

Syndicate content