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
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