IC SunsetThe developerWorks Connections platform will be sunset on December 31, 2019. On January 1, 2020, this forum will no longer be available. More details available on our FAQ.
  • No replies
Art Wermers
Art Wermers
1 Post

Pinned topic Very Lazy Load of Tree View

‏2015-09-24T23:33:15Z | ajax dojo jquery

Has anyone had to do this -

I want to load a Tree View from the with a potentially large number of nodes so of course would want to use a Lazy Load.  It seems simple enough to not load any children until a node is expanded - - in DoJo I could simply specify the tree model as "deferItemLoadingUntilExpand: true".


Here is the hard part - any given expanded node could have thousands of children.  What I want to do is load the first 100 or so, display to the user and then in the background continue to update the tree until all the children are loaded.  In that way, the user can start working on the children before all of the children are loaded.


Any suggestions?