PDA

View Full Version : Dynamic ExtJS 3.4 Group and Tree Structure with expand/collape operations



sjunghare
13 Sep 2012, 10:39 AM
I am new to the ExtJS and would like to understand on following requirements to be implementable or not.

Group Name 1 [Collapse / Expant Panel]
Root 1 - select all / unselect all
Node 1 (check box)
SubGroup Name 11 [Collapse / Expant Panel]
Root 1 - select all / unselect all
Node 11 (check box)
Node 12 (check box)
Node 13 (check box)
Node 14 (check box)
Node 2 (check box)
Node 3 (check box)
Node 4 (check box)

Group Name 2 [Collapse / Expant Panel]
Root 2 - select all / unselect all
Node 21 (check box)
Node 22 (check box)
Node 23 (check box)
Node 24 (check box)

Group Name 3[Collapse / Expant Panel]
Root 3 - select all / unselect all
Node 31 (check box)
Node 32 (check box)
Node 33 (check box)
Node 34 (check box)

Is it possible in ExtJS 3.4 to load the data in tree nodes dynamically ? How to implement this ?

If yes, how to select the nodes to send back to backend to stored in the database ?

Thanks,

mitchellsimoens
19 Sep 2012, 11:57 AM
Check out the async tree node. If there are no children specified for a non-leaf node then it will automatically do a request to load the children passing the node id