jQuery UI Widgets Forums Grid jqxGrid | Export Data

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • jqxGrid | Export Data #73398

    raj
    Participant

    Hi,

    I’m trying to achieve the export data in CSV format and I saw an API for achieving the same and I implemented as below but I can see that one server-side call is happening to the below URL

    http://jquerygrid.net/export_server/save-file.php

    $("#jqxgrid").jqxGrid('exportdata', 'csv', 'personSummary');

    Can someone suggest me how to achieve export data in local environment?

    looking for solution.

    Regards,
    Raj

    jqxGrid | Export Data #73399

    Dimitar
    Participant

    Hi Raj,

    If you purchase a Developer or Enterprise license, you will have access to the file save-file.php and will be able to host it locally. Then, you may export your grids as follows:

    $("#jqxGrid").jqxGrid('exportdata', 'json', 'jqxGrid', true, null, true, http://www.myserver.com/save-file.php);

    Best Regards,
    Dimitar

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

    jqxGrid | Export Data #73438

    raj
    Participant

    Dimitar,

    Thanks for your quick turnaround.

    Actually, I’m working in JSP and I need a logic to export data from the server-side alike “save-file.php“.

    Could you please help me?

    Regards,
    Raj

    jqxGrid | Export Data #73487

    Dimitar
    Participant

    Hi Raj,

    Currently, we do not have a similar implementation for JSP, but you may try exporting the grid to a variable, e.g.:

    var data = $("#jqxgrid").jqxGrid('exportdata', 'json');

    then write the variable to a file. There are many resources about this on the Internet, e.g.: http://stackoverflow.com/questions/5177305/creation-of-a-text-file-in-jsp.

    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.