PDA

View Full Version : |resolved] TreeStore filling



Nicolas Jauffret
26 May 2009, 8:06 AM
Hello,

I have a "TreeStore<ModelData> myTreeStore" that I would like to fill from a specific node.

* When I call :
myTreeStore.add( children, true );


With "children" as List<ModelData>.

=> I have no problem : all children are well inserted into the root directory.


* But when I pass the parent like this :

myTreeStore.add( parent, children, true );


With "parent" being well set ; I test and display its label :

Info.display( "Debug Parent Label", parent.get( "label" ).toString() );

=> The tree is emptied with no more item in it.

Would you have an idea of what is wrong ?

Thank you in advance for your help,

Regards,

Nicolas Jauffret

Animal
26 May 2009, 9:28 AM
You'd get better help in the GWT forum.

frank.rousseau
27 May 2009, 12:33 AM
TreeStore is a class from the com.extjs.gxt.ui.client.store package. I don't think GWT forums would give any answers about this problem.

Nicolas Jauffret
29 May 2009, 5:07 AM
The problem was not involving GXT.
Problem solved, thank you.