Search code examples
apache-flextreeadvanceddatagrid

Flex: Expand AdvancedDataGrid Tree Column programmatically


Does anyone know how to programmatically expand the nodes of an AdvancedDataGrid tree column in Flex? If I was using a tree I would use something like this:

dataGrid.expandItem(treeNodeObject, true);

But I don't seem to have access to this property in the AdvancedDataGrid.


Solution

  • AdvancedDataGrid has an expandItem() method too:

    http://livedocs.adobe.com/flex/3/langref/mx/controls/AdvancedDataGrid.html#expandItem()