Page 1 of 1

Dynamic Expand

PostPosted: 17 Mar 2016 20:54
by Ricardo Muñoz
Hi,

I'm dynamically loading nodes to a DynaTree, ie, using OngetRootNodes and OnGetChildrenNodes.

How can I do for nodes to appears expanded (showing their children)?
I tried with:
Code: Select all
JSonObj.B['expanded'] := True;
JSonObj.B['isLazy'] := True;

or

JSonObj.B['expand'] := True;
JSonObj.B['isLazy'] := True;


TIA,
Ricardo

Re: Dynamic Expand

PostPosted: 18 Mar 2016 10:41
by Alexander Bulei
Hi Ricardo Muñoz,

Since you are using the OnGetChildrenNodes, you can't...
Because, the component will make the request to the server to get children nodes for current expanding node.

So, you can't set the node expanded and show the children at this way.

Btw, this property name is correct:

Code: Select all
JSonObj.B['expand'] := True;


Best Regards.