Hi Tuan,

this is a complex issue, depending how you want to load your data from the
server.  There is no out-of-the box solution yet. 

Either you load the complete tree structure at once (which is ok for small
trees) and populate the SimpleTreeDataModel with it:

http://demo.qooxdoo.org/current/apiviewer/#qx.ui.treevirtual.SimpleTreeDataModel

Or, for really big tree structures, you need to devise a lazy loading
strategy, which loads only the top nodes initially into the
SimpleTreeDataModel and later loads subnodes on demand (for example, when
the user double-clicks on the parent nodes) and adds them to the tree
structure. This requires quite a bit of logic, that also depends on how you
store the data on the server. 

I have developed one implementation in the qcl and VirtualData contribs, but
both are too specialized and too much overhead to use cases for which this
implementation is not adequate, so I wouldn't bother to spend too much time
with it, and they also work with a JsonRpc store instead of your Json store. 

C.
-- 
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Need-help-with-TreeVirtual-json-data-tp5733317p5735175.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to