Smart Refresh Duplicate issue

Hello,
We are using dhtmlxTree to load more number of nodes in our product.
i have used setXMLAutoLoading method to load dynamically.
but after loading all the nodes when i am refreshing a perticular node using smartrefreshbranch or smartrefreshitem i am getting duplicate nodes with the response.

Please help me how can i resolve this issue?

Thanks

Hello Nareshadla,

I tested smartRefreshItem() and get the same result as you : it duplicates my nodes too.
Then i’ve tested refreshItem() and it refreshes the node correctly, you should try it instead.

Regards,

Hello ddimanche,
Thanks for your reply.

Yes refreshItem is working fine for all childs of root node.
But when im using same method to refresh my root node then i have faced the same problem.

In my tree “codesets” is the root node with node id as “-1” ,and i have few childrens to that. when i refreshed the root node with tree.refreshItem("-1"); then i have the tree with new root node with id “-1_someintger”.

Like:

codesets
—+child1
—+child2
—+child3
codesets---->(new node in same level of top codesets).

Can you please assist me how to resolve this issue.

Thanks in advance. :slight_smile:

Hello Nareshadla,

I could not reproduce your problem, my root node is refreshing correctly (i don’t have negative id).
If “codesets” is your single root node, try to reload the entire tree instead of the root node -1, by using refreshItem(0)

Regards,

Thanks alot …ddimanche,
My problem was resolved.

Thanks.