Focus jumping to the top whenever a node is opened or closed

I have a tree that loads dynamically. Each time I click on the plus or minus sign, the focus of the tree jumps to the top. Does anybody have an idea how to prevent this from happening?

Thanks,
Theo

Make sure that the first node isn’t selected each time you load data.

Here is the sample with dynamic loading:
dhtmlxTree/samples/12_loading_processing_data/13_tree_dyn_loading.html
dhtmlx.com/docs/products/dht … ading.html

Thanks Alexandra,

you’re right, the first node is selected.
In the meantime, I’ve downloaded the latest version of the software and the problem seems to have disappeared just by using this version.

What I can’t seem to fix is the spacing problem when opening subnodes. This ruins the way the parent node is displayed by moving the folder icon and the text to the right for no reason (see attached image). Any idea why this is happening in IE8, and not in FF 3.5?

What I can’t seem to fix is the spacing problem when opening subnodes.

Does the problem occur with the latest tree version ? If it does, please provide the complete demo

Sorry, my mistake. I rebuilt the application using the old version of dhtmlx. With the latest version, the spacing issue is solved as well.
Cheers,
Theo