Unplanned
Last Updated: 22 Sep 2020 13:20 by ADMIN
Software
Created on: 14 Sep 2020 14:33
Category: Grid
Type: Feature Request
3
Export Grid to Microsoft Word

Please add a feature to export the grid to Microsoft Word file

---

ADMIN EDIT:

I am attaching a sample to this post that you can use to generate the docx file through the Telerik Document Processing libraries by looping over the data.

You can extend it further (add more fields, refactor so it is more reusable, extract to service,...) and if you would like to export the current grid data, see about implementing the data operations manually through the OnRead event - you can cache the DataSourceRequest object and then run a .ToDataSourceResult() query on the data to get what the grid displays on its current page. An example of a similar approach is available here for a customized excel export.

You can also read more about working with tables in a Word document here to apply more styling options as needed.

---

Attached Files:
1 comment
ADMIN
Marin Bratanov
Posted on: 22 Sep 2020 13:20

To anyone looking for this at the moment - I have attached a sample to the opener post that shows how you can implement it with a bit of application code.

 

Regards,
Marin Bratanov
Progress Telerik

Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive, special prizes, and more, for FREE?! Register now for DevReach 2.0(20).