Our blazing fast Grid component built with pure JavaScript


Post by ashupp »

Hello,

nested data is not exported when using excel export.

I reproduced the issue in the export example.
https://www.bryntum.com/examples/grid/exporttoexcel/

Just copy & paste my gist into the example:
https://gist.github.com/ashupp/0d28345a49bd5bae3afdcfc913d8407a

I created a static datasource with nesting and the field "food" will not be shown in excel export.
Not with automatic export column configuration neither with manual set columns.

Am i right seing this as issue? Is there a quick workaround for this?

Thank you and best regards, Alex


Post by mats »

Looks like a bug yes, thanks for a crystal clear test case :)

https://github.com/bryntum/support/issues/2687

We'll get it fixed!


Post by mats »

Issue fixed, you can use a column renderer on the column to get it working for now.


Post by ashupp »

Hello and thank you for the fast response and resolution.
I did try to use a column renderer for the column and even for export before - but i could not make it work.
Could you please provide some detail (code)?

Maybe in my gist?

Thanks in Advance, Alex


Post by mats »

Try:

{
        text     : 'Food',
        field    : 'innerdata.food',
        renderer : ({ record, column }) => record.get(column.field),
        flex     : 1
    }

Post by ashupp »

It seems there was another problem in a previous grid version.
I was still on 4.0.8 and the renderer trick did not work.
Updated now to 4.1.0 and the workaround solves the problem.
Thank you


Post Reply