jQuery UI Widgets Forums Grid Choose where to export

This topic contains 3 replies, has 2 voices, and was last updated by  Dimitar 9 years ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Choose where to export #75847

    yangtsecxf
    Participant

    Hi,

    When export grid to excel, how to open a folder browser to choose where to save?

    Choose where to export #75848

    Dimitar
    Participant

    Hi yangtsecxf,

    This depends on your browser settings. For example, in Chrome, you should go to SettingsShow advanced settingsDownloads and check Ask where to save each file before downloading.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    Choose where to export #75875

    yangtsecxf
    Participant

    I want a file browser to choose a directory, so I can choose where to save the gird, similar to fileUploader, but save not upload. Here is the code of export.
    var exportInfo = GridDom.jqxGrid(‘exportdata’, ‘xls’);
    $.post(‘ExportToFile’,{‘FilePath’:”d:\\grid.xls”, ‘FileContent’:exportInfo, ‘FileFormat’:’xls’},
    function(rtData,status,xhr){
    rtData = JSON.parse(rtData);
    ShowTopTips(rtData.msg);
    });

    Thanks.

    Choose where to export #75876

    Dimitar
    Participant

    Hi yangtsecxf,

    If you do not wish this to be done automatically by the browser when you export the grid to a file, i.e.:

    GridDom.jqxGrid('exportdata', 'xls', 'grid');

    you can try the approach suggested here: http://stackoverflow.com/a/16086435.

    Either way, this is not an actual jQWidgets-related issue.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.