Unplanned
Last Updated: 06 Jul 2023 06:59 by ADMIN
Claudio
Created on: 20 Jun 2023 07:46
Category: KendoReact
Type: Feature Request
0
if a custom column configuration is passed to the excel export, it still takes the grid's one

Hi, 

I'm working on a grid which has an action cell with buttons, which of course i dont want to export, but when i try to pass a custom column configuration to the export it fallbacks to the grid's one.

I made further investigation on the kendo-react-private repository and i found out that effectively there's a preference for the grid columns rather than custom

more precisely on kendo-react-private>packages>excel>src>ExcelExport.tsx (line 201~206)


const columns = this.extractColumns(
            gridColumns ||
            externalColumns ||
            this.props.columns ||
            React.Children.toArray(children)
        );

this is the piece of code i was talking about.

as you can see if gridColumns has a value is preferred rather than externalColumns

it would be nice to have a property onto the grid column definition stating if that column should be exported or not (best case)

or just preferring externalColumns to gridColumns (base case)

3 comments
ADMIN
Filip
Posted on: 06 Jul 2023 06:59

Hello, Claudio,

I am converting this thread to an official feature request.

We will be monitoring it closely.

Regards,
Filip
Progress Telerik

As of R2 2023, the default icon type will be SVG instead of Font. See this blogpost for more information.
Claudio
Posted on: 03 Jul 2023 09:03

it's ok if you want to cionvert it in a feature request

 

ADMIN
Filip
Posted on: 26 Jun 2023 20:17

Hello, Claudio,

As previously discussed I can convert this thread to an official feature request for a property that allows a column to be exported or not, if you would like that.

Regards,
Filip
Progress Telerik

As of R2 2023, the default icon type will be SVG instead of Font. See this blogpost for more information.