Just calling removeAll to the qx.ui.tree.Tree object is not enough.

It seems that the selection manager is not kept in sync with the remove call.

After re-populating the tree and clicking on the first item I get the following on the debug console:

qx.ui.tree.TreeFile[HASHCODE:3798]
115469: Modification of property "selected" failed with exception: TypeError - vTree has no properties
 at qx.js:1
 at qx.js:1
 at qx.js:1
 at qx.js:1
 at qx.js:1
 at qx.js:1
 at qx.js:1
 at qx.js:1
 at qx.js:1
 at qx.js:1
 at qx.js:1
 at qx.js:1

Any help would be great.

What I want to achieve is to create the tree widget and then continuously delete TreeFolder entries (and all its decends) and TreeFiles, repopulate, delete etc.

Anyone done this before?

Dietrich Streifert schrieb:
Again answering myself:

removeAll is the method.

Maybe one of the implementors can open my eyes on how this is implemented?

Thank you.

Dietrich Streifert schrieb:
  
Hello Everybody,

how can I remove the contents of a TreeFolder (i.e. the root folder)?

I searched around in the examples and the source but cant' figure this out:

Once I know this I'll provide a method clear for TreeFolder which 
exactly does this.

Thank you for your help.

Best regards....

  
    

  

-- 
Mit freundlichen Grüßen
Dietrich Streifert
Visionet GmbH
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to