[Users] How to get unrendered child nodes

geographika geographika at gmail.com
Mon Dec 6 22:22:22 CET 2010


Hi,

Depending on the node type the children exist if the node hasn't been 
expanded. I added a listener for a gx_overlaylayercontainer to expand 
and switch all child nodes on if the parent is switched on:

{
                     "nodeType": "gx_overlaylayercontainer",
                     "expanded": false,
                     checked: false,
                     "text": "Parent Node",
                     listeners: {
                         "checkchange": function(node, checked){

                             if(checked){
                                 //need to load all the child nodes to 
switch them on
                                 node.expand();
                             }
                             node.eachChild(function(n){
                                 n.getUI().toggleCheck(checked);
                             });
                         }
                     },

On 06/12/2010 22:04, Alexandre Dube wrote:
> Hi,
>
>     This is more a Ext question, but since I know this is a good resource
> place...
>
>     When a TreeNode hasn't been expanded yet, none if its child nodes are
> created so I don't have a way to know which one if 'checked' to check
> the parent accordingly (if all child nodes are checked).
>
>     How can I access the uncreated child nodes ?
>



More information about the Users mailing list