# Export Expanded Rows Data from TreeList to Excel

## Environment

<table>
    <tbody>
	    <tr>
	    	<td>Product Version</td>
	    	<td>9.0.0</td>
	    </tr>
	    <tr>
	    	<td>Product</td>
	    	<td>Progress® KendoReact TreeList</td>
	    </tr>
    </tbody>
</table>

## Description

Currently, I need to manually expand the rows to include the child rows in the exported Excel file. How can I have the rows automatically expand for the `ExcelExport` when exporting?

## Solution

This can be achieved by using the [mapTree](https://www.telerik.com/kendo-react-ui/components/common/api/maptree#mapTree) function to expand the TreeList rows and then passing the data to the `ExcelExport`.

[Demo Source](https://demos.telerik.com/kendo-react-ui/knowledge-base/treelist/excel-export-treelist-expanded-rows/source.txt)
