Grid-to-Excel export parent and child rows

How would I go about exporting a tree grid that contains parent and child rows? Currently, I am only getting the parent rows and not the child rows.

I notice that it does export the child rows but does not format the export to include the collapsing and expanding of the child and parent rows. How can I accomplish this?

Try to use setSerializationLevel() method … ationlevel

setSerializationLevel() did not do anything. Again, I want the Excel export to be formatted with expandable and collapsible sections based on parent/child relationship.

Grid supports two possible solutions for data export

a) through CSV
b) grid2excel service

In both cases - result of export will be a plain data sheet, currently there is no way to have hierarchical data sheet as result of export.