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
30
Getting error in IgGrid export to Excel
posted

My requirement is to display grid by using search parameters and  export to excel. I am getting below error while searching the grid results. i didn't get that error on first time searching the results.

jquery.min.js:10 Uncaught TypeError: b.toInt32 is not a function
at Class.s (eval at <anonymous> (jquery.min.js:3), <anonymous>:184:10134)
at Class.g4 (eval at <anonymous> (jquery.min.js:3), <anonymous>:25:15879)
at Class._init3 (eval at <anonymous> (jquery.min.js:3), <anonymous>:31:3994)
at Class._init2 (eval at <anonymous> (jquery.min.js:3), <anonymous>:31:3836)
at Class._init1 (eval at <anonymous> (jquery.min.js:3), <anonymous>:31:3767)
at Class.init (eval at <anonymous> (jquery.min.js:3), <anonymous>:31:3703)
at new Class (eval at <anonymous> (jquery.min.js:3), <anonymous>:232:1028)
at eval (eval at <anonymous> (jquery.min.js:3), <anonymous>:87:17624)
at eval (eval at <anonymous> (jquery.min.js:3), <anonymous>:89:1004)
at eval (<anonymous>)

i have used these scripts.

<script src="">www.igniteui.com/.../script>
<script src="">www.igniteui.com/.../script>

<script type="text/javascript" src="<%= Url.Content("~/Infrastructure/Scripts/infragistics/infragistics.core.js")%>"></script>
<script type="text/javascript" src="<%= Url.Content("~/Infrastructure/Scripts/infragistics/infragistics.lob.js")%>"></script>
<script type="text/javascript" src="<%= Url.Content("~/Infrastructure/Scripts/modernizr-2.8.3.js")%>"></script>
<script type="text/javascript" src="<%= Url.Content("~/Infrastructure/Scripts/infragistics/infragistics.loader.js")%>"></script>
<%--<script src="../../Infrastructure/Scripts/jquery/jquery.ui.core.js"></script>--%>


<!-- Required for igGridExcelExporter -->
<script type="text/javascript" src="<%= Url.Content("~/Infrastructure/Scripts/infragistics/infragistics.documents.core.js")%>"></script>
<script type="text/javascript" src="<%= Url.Content("~/Infrastructure/Scripts/infragistics/infragistics.excel.js")%>"></script>
<script type="text/javascript" src="<%= Url.Content("~/Infrastructure/Scripts/infragistics/infragistics.gridexcelexporter.js")%>"></script>

Please suggest a solution on this.

  • 16310
    Offline posted

    Hi,

    Thank you for posting in the Infragistics community and for the provided resources !

    However, they don't tell much about the error as it comes from the minified version of juqery. Anyway, I noticed that alo9ng with all the required Infragistics recources, you are loading the Infragistics.loader.js as well. Basically, you either load all resources in the conventional way ( like you do with infragistics.core.js), or use the igLoader to load everything needed. Please stick to one of those approaches, and I recommend you to remove the Infragistics.loader.js and load recources in the traditional way.

    Then it will be helpful if you confirm if the error is still shown, or ideally provide a sample that reproduces the issue. All other details are helpful to know:

    • exact version of the Ignite UI for JavaScript library used
    • does the error show on other samples ?
    • does the error show on all browsers ?

    Hristo