Topic: Error after node is moved
Help Help Help...
I get a error in the situation as described below.
1. I have node with loadable:true. I expand the children of the same ( which has again children( third level ) ). -- OK
2. Then I move one of the child node ( drag and drop ) - OK
3. After move I toggel the parent node( one with loadable:true ). It reloads the children. For that I added following code to to toggel event.
refreshChildren: function()
{
this.state.loaded=false;
this.state.open=false;
this.state.loadable=true;
this.children=[];
this.$draw=false;
this.tree.$getIndex();
this.getDOM('children').innerHTML='';
Mif.Tree.Draw.update(this);
return this;
} ----- Also OK
all the nodes are back again at there original position
4. Now when I click somewhere on child node icon I get the 'null is null or not an object error' -- NOT OK
After investigating I found
I get this error in getDOM method of Mif.Node because I Guess it tries to lookup the node( one which was moved ) with old UID
But after the reload all the child nodes has new UID.
I am sure I am doing something wrong here.
Last edited by Sanjay (2009-04-28 18:25:33)