Hi Team,
I need to export grid as well as hierarchical grid to excel/pdf.
I am using the below code:
function exportToExcel() { $.ig.GridExcelExporter.export($("#gridCategory"), {
dataExportMode: $("#dataExportMode").val() });
The export functionality is not working and is giving the error:
I am using the version: 13.2.20132.1010 (as mentioned in infragistics.core.js file)
Hi Hristo,
I have placed the test application on the below location:
https://www.dropbox.com/s/uona174kpe1wa6k/TestInfragistics.zip?dl=0
Please have a look.
-Regards,
Agraj
Hi,
I suggest that you have a look at the online sample at https://www.igniteui.com/grid/aspnet-mvc-helper and compare it in detail with your app. IF it does not help I can also send you an MVC app with igGrid in the view. However I still believe issue may be related to non-consistency in the referenced resources. You can also send us your app and we will investigate it and fix it.
Looking forward to hearing from you.
I would be able to try this once the grid starts to bind in the view. As I mentioned earlier, after migrating to new version (15.2), grid is not binding. Getting the below error in console:
Uncaught TypeError: Cannot read property 'key' of undefined (infragistics.lob.js).
Could you please help me resolve that error soon.
Hi Agraj,
in 15.2 the export methos has been renamed to exportGrid. so please try the following:
$.ig.GridExcelExporter.exportGrid($("#gridCategory"), {
Please let me know if you are now able to export the grid or some error occurs.
Hi Hristov,
Ok, I have removed loader.js. Below is the head section of the page:
<head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Category List - My ASP.NET Application</title> <link href="/Assets/css/main.css" rel="stylesheet"/><link href="/Assets/css/site.css" rel="stylesheet"/><link href="/Assets/css/spinner.css" rel="stylesheet"/><link href="/Assets/css/infragistics.theme.custom.css" rel="stylesheet"/><link href="/Assets/css/infragistics.css" rel="stylesheet"/><link href="/Assets/css/infragistics.structure.css" rel="stylesheet"/><link href="/Assets/css/fonts.css" rel="stylesheet"/><link href="/Assets/css/custom.css" rel="stylesheet"/>
<script src="/Assets/js/jquery/jquery-2.0.3.js"></script><script src="/Assets/js/jquery/jquery-ui-1.10.3.js"></script><script src="/Assets/js/jquery/jquery.ui-contextmenu.js"></script><script src="/Assets/js/modernizr-2.6.2.js"></script><script src="/Assets/js/plugins/jquery.cookie.js"></script><script src="/Assets/js/main.js"></script><script src="/Assets/js/custom.js"></script><script src="/Assets/js/plugins.js"></script><script src="/Assets/js/plugins/transition.js"></script><script src="/Assets/js/plugins/tab.js"></script><script src="/Assets/js/infragistics.core.js"></script><script src="/Assets/js/infragistics.lob.js"></script><script src="/Assets/js/filesaver.js"></script><script src="/Assets/js/blob.js"></script><script src="/Assets/js/modules/infragistics.documents.core.js"></script><script src="/Assets/js/modules/infragistics.excel.js"></script><script src="/Assets/js/modules/infragistics.gridexcelexporter.js"></script>
</head>
Also, the code to export the excel is as below:
But as of now after migrating to new version, the first problem is my grid itself is not getting displayed. Once, that gets resolved, will have to check the export issue.