You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by mark goldin <ma...@gmail.com> on 2016/10/11 18:32:53 UTC

ADG - expanding all parent folders at once

I have a large tree grid. I need to open all *Asset *nodes. Here is an xml
structure:
<asset>
   <asset>
       <asset>
           <project>
           </project>
       </asset>
   </asset>
</asset>

I have to following code:
var _List:XMLList = grid.dataProvider.source.source.descendants('Asset');
for (var i:int=0;i<_List.length();i++)
{
grid.expandItem(_List[i], true, false);
}

Works, but takes too long. Any idea?

Thanks