I have a solution that has been built with tag helpers, and wants the added functionality of exporting both the parent and child grids. Is this possible via tag helpers?
1 Answer, 1 is accepted
1
Alex Hajigeorgieva
Telerik team
answered on 19 Jun 2019, 08:53 AM
Hello, Owen,
The built-in excel export is designed to export the current view of the widget it is initiated upon. The export uses the data only and has no knowledge of the detail templates and any other widget which may be added to the detail template. In order to handle the grid details and include them in the master grid excel export, we need to intercept the on-excel-export event and alter the created workbook programmatically.
Dependent on the current setup, there are various ways of how this may look like. Here are three options that I can think of:
1) Export only the current view as well as only the expanded children
We have an example for ASP.NET MVC in the repository here:
2) Export the all pages and all details. The difference here is the necessity to create a Kendo UI Data Source that reads the details separately and then populates the workbook
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.Learn More.