Skip to content

Replies

0
David Dai
David Dai answered on Aug 24, 2018 1:18 PM

let me provide more detail here.
VS2015 Env

in the _layout.cshtml (mastet template page)

<script type="text/javascript" src="@Url.Content("~/Scripts/jquery-2.0.0.min.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Scripts/jquery-ui.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Scripts/modernizr-2.6.2.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Scripts/Infragistics/js/infragistics.core.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Scripts/Infragistics/js/infragistics.lob.js")"></script>

<link type="text/css" rel="stylesheet" media="all" href="@Url.Content("~/Content/Infragistics/css/themes/infragistics/infragistics.theme.css")" />
<link type="text/css" rel="stylesheet" media="all" href="@Url.Content("~/Content/Infragistics/css/structure/infragistics.css")" />

then, in the view page aa.cshtml

<script type="text/javascript" src="@Url.Content("~/Local/Scripts/FileSaver.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Local/Scripts/Blob.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Local/Scripts/infragistics.documents.core.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Local/Scripts/infragistics.excel.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Local/Scripts/infragistics.gridexcelexporter.js")"></script>

then, when I click the button 'Export', call the js function 

$("#exportButton").on("click", function () {
var exportingOverlay = $('<div>');
$.ig.GridExcelExporter.exportGrid($("#igGrid"), {
fileName: excelFileName,
gridFeatureOptions:
{
},
},
{

exportStarting: function (e, args) {
showOverlay(args.grid, exportingOverlay);
},

success: function () {
hideOverlay(exportingOverlay);
},

});
});

it reported error message such as 

Uncaught TypeError: $$t.$fd.a is not a function
at Class.dispose (infragistics.excel.js:58)
at Class._ab (infragistics.excel.js:41)
at Class._x (infragistics.excel.js:41)
at Class.init (infragistics.excel.js:41)
at new Class (infragistics.core.js:319)
at Class.styles (infragistics.excel.js:21)
at Class._init1 (infragistics.excel.js:20)
at Class.init (infragistics.excel.js:20)
at new Class (infragistics.core.js:319)
at Class._createExcelWorkbookWithWorksheet (infragistics.gridexcelexporter.js:23)

Any suggestion?

0
David Dai
David Dai answered on Aug 24, 2018 8:28 AM

I still have the problem