Fail to deleteChildItems


#1

Hi,

I’ve a bug when I try te reload my tree, if a d&d action has been done.

If I move a sister item into a parent item, and call the method deleteChildItems(0) I have this javascript error:
Failed to execute ‘insertBefore’ on ‘Node’: The node before which the new node is to be inserted is not a child of this node.

I 've the 3.6 version, is this bug is fixed in 4.6 ? Is there a way to fix this in bug in this current version ?

Thanks


#2

Hi
We tried to call deleteChildItems from onDrop event - works fine locally.
Please, provide us completed demo on support@dhtmlx.com with link to this topic
docs.dhtmlx.com/auxiliary_docs__ … pport.html


#3

You’ll find the demo package in file attached.

proccess :

  • drag item3 in item1,
  • click on deleteChildItems buttons
    –> Failed to execute ‘insertBefore’ on ‘Node’: The node before which the new node is to be inserted is not a child of this node.

Thanks


#4

I asked to send demo on email to avoid attaching PRO on forum
Please, don’t do it. Only by email or in support.
Issue is in progress, please wait


#5

hi,

is there some news about this bug ?

thanks

ps : i tried to make the migration in 4.6 version, but the enableSmartRendering disappear in this suite and the performance too : for a node with 10 000 nodes, it takes 13’ against 1’ in 3.6 version.

ps2 : is there a way to make an update of others components in 4.6 and keep dhtmxTree in 3.6 ?


#6

Hi
There is no issue locally.
Please, provide us demo on support@dhtmlx.com with steps of reproducing