jQWidgets Forums
jQuery UI Widgets › Forums › Grid › Export to excel?
This topic contains 4 replies, has 2 voices, and was last updated by jose Ivan 12 years, 8 months ago.
-
AuthorExport to excel? Posts
-
HI, i got this error Uncaught TypeError: Cannot call method ‘toString’ of undefined … when i click to export to excel ?
$('#SuperGrid').jqxGrid({ width: '98%', editable: true, altrows: true, enablehover: true, enabletooltips: true, enableanimations: true, keyboardnavigation: true, autoheight: true, pageable: false, columnsresize: true, theme:'classic', editmode: 'selectedcell ',selectionmode: 'singlecell', showstatusbar: true, statusbarheight: 30, showaggregates: true, ready: function () { $('#SuperGrid').jqxGrid('selectcell', 0, 'Cuenta'); $('#SuperGrid').jqxGrid('wrapper').focus(); }, columns: [ { text: '', columntype: 'checkbox', width: 40, datafield: 'ready', resizable: false }, { text: 'Cuenta', dataField: 'Cuenta', width: 100 } ] }); $('#export').on("click", function () { $('#SuperGrid').jqxGrid('exportdata', 'xls', 'SuperGrid'); return false; }); I added the js <script src="../JavaScript/jquery.min.js" type="text/javascript"></script> <script src="../JavaScript/jQWidgets/jqxcore.js" type="text/javascript"></script> <script src="../JavaScript/jQWidgets/jqxdata.js" type="text/javascript"></script> <script src="../JavaScript/jQWidgets/jqxdata.export.js" type="text/javascript"></script> <script src="../JavaScript/jQWidgets/jqxgrid.js" type="text/javascript"></script> <script src="../JavaScript/jQWidgets/jqxgrid.edit.js" type="text/javascript"></script> <script src="../JavaScript/jQWidgets/jqxgrid.pager.js" type="text/javascript"></script> <script src="../JavaScript/jQWidgets/jqxgrid.selection.js" type="text/javascript"></script> <script src="../JavaScript/jQWidgets/jqxgrid.sort.js" type="text/javascript"></script> <script src="../JavaScript/jQWidgets/jqxgrid.columnsresize.js" type="text/javascript"></script> <script src="../JavaScript/jQWidgets/jqxgrid.filter.js" type="text/javascript"></script> <script src="../JavaScript/jQWidgets/jqxgrid.grouping.js" type="text/javascript"></script> <script src="../JavaScript/jQWidgets/jqxgrid.export.js" type="text/javascript"></script> <script src="../JavaScript/jQWidgets/jqxgrid.aggregates.js" type="text/javascript"></script> <script src="../JavaScript/jQWidgets/jqxbuttons.js" type="text/javascript"></script> <script src="../JavaScript/jQWidgets/jqxscrollbar.js" type="text/javascript"></script> <script src="../JavaScript/jQWidgets/jqxdropdownlist.js" type="text/javascript"></script> <script src="../JavaScript/jQWidgets/jqxcheckbox.js" type="text/javascript"></script> <script src="../JavaScript/jQWidgets/jqxlistbox.js" type="text/javascript"></script>
Hi jose Ivan,
Please, send us a sample data which reproduces the reported issue.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comi was searching and the error occurs when i click and the function “_getexportcolor: function (k) {” where k is undefined ? any idea? i update the version 2.4.1 to 2.4.2 so ?
Hi jose Ivan,
Please, send us a sample data which reproduces the reported issue. We cannot help you having the provided information. You can send the sample to support@jqwidgets.com
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comthanks for replay.
I wanna add that my grid is bind by $.ajax in success .
But it’s works pretty well.
i sent you!
-
AuthorPosts
You must be logged in to reply to this topic.