Export entire tree grid to excel without expand


I use the toExcel api to export the tree grid to an excel. However, the toExcel api only exports the grid data which is visible in the screen; collapsed children are not exported. As a workaround, i expand the entire tree grid and then invoke toExcel api. Do you have other options to export the entire tree grid without having to expand the tree grid.


export script was designed only for grid, not for treegrid.
So it doesn’t support any options to export treegrid data.