Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
230
GridExcelExporter uncaught error: empty color cannot be used to create a WorkbookColorInfo instance
posted

I have two angular views with igGrids. I have one view with a statically defined igGrid that is able to export to Excel. My second view has a dynamically created igGrid. When trying to export, the dynamically created igGrid, I get an uncaught exception "The empty color cannot be used to create a WorkbookColorInfo instance"?

// HTML

<div id="gridPlaceholder"></div>   

// dynamic construciton on view activation

$("#gridPlaceholder").igGrid($scope.gridOptions);

// export

$.ig.GridExcelExporter.export($("#gridPlaceholder"), {
fileName: "OvertimeReport",
gridFeatureOptions: {
gridStyling: "applied"
}
});

Any ideas what could be going on?