Pending Review
Last Updated: 13 Sep 2018 18:35 by ADMIN
Pavel
Created on: 27 Jan 2015 10:32
Category: Grid
Type: Feature Request
16
Add the grid column template to be used when exporting to PDF or Excel
It would be nice to have the possibility of using own template for the exported data, as some data may be obtained from own functions.
Something like this:
            columns: [
                {
                    field: "ProductName",
                    title: "Product Name",
                    aggregates: ["count"],
                    footerTemplate: "Total Count: #=count#",
                    groupFooterTemplate: "Count: #=count#"
                },
                {
                    field: "UnitPrice",
                    title: "Unit Price",
                    template: '<div style="text-align: right; font-weight: bold;">#= kendo.toString(UnitPrice, "n2") #</div>',
                    exportTemplate: '#= kendo.toString(UnitPrice, "n4") #',
                    aggregates: ["sum"]
                }
            ]
1 comment
ADMIN
Telerik Admin
Posted on: 27 Jan 2015 13:00
Thanks for the suggestion.

For now you can intercept the excelExport event of the grid as illustrated here (http://docs.telerik.com/kendo-ui/web/grid/how-to/excel/column-template-export) in order to output and format the data in the template column cells according to your preferences