We noticed while testing the latest version (UI for ASP.NET Core R2 2022 (version 2022.2.510)) that hidden grid columns are incorrectly exported to Excel. Rolling back one version resolves the issue so it appears to be an issue in the new version.
I verified it in the grid demos on your site, and also verified that the bug is not present in the jQuery version.
jQuery version - no issue
- Go to https://demos.telerik.com/kendo-ui/grid/excel-export
- Click "Export To Excel" button - view the export
- Use the columns menu to hide the Produce Name column
- Click "Export To Excel" button - view the export and the Product Name column is correctly not exported
ASP.NET Core version - BUG
- Go to https://demos.telerik.com/aspnet-core/grid/excel-export
- Click "Export To Excel" button - view the export
- Use the columns menu to hide the Produce Name column
- Click "Export To Excel" button - view the export and the Product Name column is still exported but shouldn't be