Kendo saveasexcel dynamically header of excel sheet
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a kendo grid, like this: so a user can select a periode(periode1) and that is the header. and this is the javascript for it: function OngridDatabound(e) { $('.periode1jaar').html($('#Periode1').data('kendoDropDownList').text()); $('.periode2jaar').html($('#Periode2').data('kendoDropDownList').text()); } and this is the javascript for export naar excel : $("#export-excel").click(function () { $("#overzicht-grid").data("kendoGrid").saveAsExcel(); }) But if I look in the excel sheet there is still standing in the header periode1 and not