Problem in Loading the tree

Hi,
I am loading the tree from server, every time the plus sign is clicked. But on clicking the plus sign, duplicate folders are created. For ex, sample is a root folder. On clicking the plus sign sample one more folder with the same name is created along with getting the data from remote server. now my tree contains two folders with the same name sample.

Please help.

Hi,

probably use dynamic loading (setXMLAutoLoading) and the server-side script returns an incorrect xml. It seems the it return the same xml for each item.

When you open an item, which is marked by child=“1” attribute, for the first time, the request is sent the script that you defined in the setXMLAutoLoading method. And this script must return the xml with child nodes for this item: the tag must contain the id attribute with id of the parent item (opened item):

...

generated XML loading correctly. But duplicate folder is displayed and click on that folder we got the folder name with random number

Could you provide an example of xml those are generated for the root and one of the items on the next level ?

For Example, Cosider the following directory structure Sample1/Sample12/Sample123/Sample1234. On clicking the plus sign of Sample1, Sample12 is loaded. On clicking Sample12, Sample123 is loaded. Onclicking Sample123, Sample1234 is loaded, But one more duplicate for Sample1 is also displayed. When i check the id of the duplicate Sample1, is gives Sample1_123523456454 (some suto generated ID).

Please help me to proceed further.

Hello,

When i check the id of the duplicate Sample1, is gives Sample1_123523456454 (some suto generated ID).

Probably you load the branch twice.

As I asked in the prevous answer - I need the examples of the example. So, I could find the mistake in the xml structure and help you to resolve the issue.