This is a migrated thread and some comments may be shown as answers.

Getting some columns blank with excel export

1 Answer 525 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ismaelc
Top achievements
Rank 1
Ismaelc asked on 13 Dec 2016, 02:31 AM

Hello Kendo Team,

I'm working with Kendo Grid and some columns are not exporting when I use the export excel feature, I think it is related with the template property, but call my eye some other columns are coming well even using template,

example:

Working Fine

                        field: "OrderID",
                        title: Order,
                        template: function (data) {
                            var url = getUrlWithLocale("/Account/OrderHistory/GetOrderDetails/");
                            return "<a id='btnViewDetails' data-orderID='" +
                                data.OrderID +
                                "' href='" +
                                url +
                                data.OrderID +
                                "/Ds' target='_self'>" +
                                data.OrderID +
                                "</a>";
                        }

Coming blank

                        field: "VolumePoints",
                        title: Volume,
                        template: "#:Pricing.VolumePoints#"

Not sure why this is happening, looks like blank columns can't to convert object into text, but the grid renders ok in the browser,

I'm attaching the js file and the excel file for your reference,

Hope you can assist, 

Thanks in advance!

1 Answer, 1 is accepted

Sort by
0
Ismaelc
Top achievements
Rank 1
answered on 13 Dec 2016, 05:48 PM
Looks like changing the field: "VolumePoints", by field: "Pricing.VolumePoints" fixed the issue.
Tags
Grid
Asked by
Ismaelc
Top achievements
Rank 1
Answers by
Ismaelc
Top achievements
Rank 1
Share this question
or