PDA

View Full Version : [CLOSED] pre-loading a TreePanel BUT only for 1 or 2 levels?



adrianot
May 07, 2014, 12:50 PM
Hi,

I am going to figure our how to request a TreePanel to load immediately 2 levels (at first load, with a single request), and make the subsequent levels optionally expandable "on demand" when the user clicks on the "expand" icon of a node.

Is it something that can be done somehow?

Thank you.

Daniil
May 07, 2014, 2:54 PM
Hi @adrianot,

You can populate all the nodes in one request.

For example,
http://examples2.ext.net/#/TreePanel/Loaders/Page/

If you configure the root node with Expanded="true", it will initiate a load request for that node. In the request you should return all the nodes for two levels.