jQWidgets Forums

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Issue with jqxdata.export.js Issue with jqxdata.export.js #133601

    filipeds
    Participant

    Hi,

    I will try to replicate the problem in a demo project and send you.

    Kind regards.

    in reply to: Issue with jqxdata.export.js Issue with jqxdata.export.js #133595

    filipeds
    Participant

    Hi Svetoslav,

    With jqxdata.export.js before jqxgrid.js does not worked. But using the jqx-all.js worked like a charm!

    Any clue why?

    Many thanks!

    in reply to: Issue with jqxdata.export.js Issue with jqxdata.export.js #133592

    filipeds
    Participant

    Hi Peter, sorry for the delay in reply.

    Even after removing the duplicated call and not initializing the grid the problem still happens. Just loading the script.

    And when I try to export, I get a “Missing reference”.

    DevTools Error

    A strange thing I noticed looking deeper into the error was the several occurrences of the “X” word in the JS, as you can see below.

    Xs 1
    Xs 2

    in reply to: Issue with jqxdata.export.js Issue with jqxdata.export.js #133574

    filipeds
    Participant

    You can find below the rendered code.

    When the page loads, I have that posted error, and when I click on the export button I get another missing reference error: Uncaught jqxGrid: Missing reference to jqxdata.export.js!

    I’ll take a test without initializing the grid to reply to you.

    
    <form action="/Relatorios/ProducaoVendas" data-ajax="true" data-ajax-begin="InsuranceSelling.ModalMessage.showloading();" data-ajax-complete="InsuranceSellingForm.init(); InsuranceSelling.ModalMessage.hide(); InsuranceSellingForm.formAjaxOnComplete('Relatorios');" data-ajax-failure="SweetAlert.Error('Erro' , error);" data-ajax-method="POST" data-ajax-mode="replace" data-ajax-success="InsuranceSellingForm.formAjaxUpdateSuccessfull(data);" data-ajax-update="#resultRelatorio" id="formRelatorio" method="post">            
    <div class="form-actions">
                        <div class="clearfix">
                            <button id="idButtonSearch" type="submit" class="btn blue" onclick="submitFormRelatorio();">Pesquisar  <i class="fa fa-table"></i></button>
                        </div>
                    </div>
                </div>
    </form>
        <div id="resultRelatorio">
          <button id="idExportExcel" type="button" class="btn blue" onclick="exportExcel();">Exportar para Excel  <i class="fa fa-file-excel-o"></i></button>
        </div>
    
        <script type="text/javascript" src="/Scripts/jqwidgets/jqxcore.js"></script>
        <script type="text/javascript" src="/Scripts/jqwidgets/jqxbuttons.js"></script>
        <script type="text/javascript" src="/Scripts/jqwidgets/jqxscrollbar.js"></script>
        <script type="text/javascript" src="/Scripts/jqwidgets/jqxmenu.js"></script>
        <script type="text/javascript" src="/Scripts/jqwidgets/jqxgrid.js"></script>
        <script type="text/javascript" src="/Scripts/jqwidgets/jqxdata.export.js"></script>
        <script type="text/javascript" src="/Scripts/jqwidgets/jqxgrid.selection.js"></script>
        <script type="text/javascript" src="/Scripts/jqwidgets/jqxgrid.columnsresize.js"></script>
        <script type="text/javascript" src="/Scripts/jqwidgets/jqxdata.js"></script>
        <script type="text/javascript" src="/Scripts/jqwidgets/jqxdata.export.js"></script>
        <script type="text/javascript" src="/Scripts/jqwidgets/jqxgrid.export.js"></script>
        <script type="text/javascript" src="/Scripts/jqwidgets/jqxexport.js"></script>
        <script type="text/javascript" src="/Scripts/jqwidgets/jqxgrid.sort.js"></script>
        <script type="text/javascript" src="/Scripts/jqwidgets/jqxgrid.filter.js"></script>
        <script type="text/javascript" src="/Scripts/jqwidgets/jqxgrid.pager.js"></script>
        <script type="text/javascript" src="/Scripts/jqwidgets/jqxgrid.grouping.js"></script>
        <script type="text/javascript" src="/Scripts/jqwidgets/jqxgrid.aggregates.js"></script>
        <script type="text/javascript" src="/Scripts/jqwidgets/jqxlistbox.js"></script>
        <script type="text/javascript" src="/Scripts/jqwidgets/jqxdropdownlist.js"></script>
        <script type="text/javascript">
            submitFormRelatorio = function () {
                $("#report").attr('href', "/Relatorios/ExportToExcel?DataInicial=" + $("input[name='DataInicial']").val() + "&DataFinal=" + $("input[name='DataFinal']").val());
            }
            exportExcel = function () {
                $("#table").jqxGrid('exportdata', 'xls', 'relatorio');
            }
            $(":input").focusout(function () {
                $("#report").attr('href', "/Relatorios/ExportToExcel?DataInicial=" + $("input[name='DataInicial']").val() + "&DataFinal=" + $("input[name='DataFinal']").val() + "&EstadoId=" + $("select[name='EstadoId']").val() + "&TipoVendedor=" + $("select[name='TipoVendedor']").val());
            });
    
Viewing 4 posts - 1 through 4 (of 4 total)