jQuery UI Widgets Forums Grid Export jqxgrid data using ASP.net MVC C#

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 8 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • jetzky
    Participant

    I am creating a project with ASP.net MVC 4 # with jqwidgets. I am trying to export via ajax but it won’t work. Here is my code.

    Controller:

    public void PotentialClientsReport(xportData data)
    {

    var gridData = data.data;
    string path = @”Reports\Report” + “.xls”;
    if (gridData != null)
    {
    System.IO.File.WriteAllText(Server.MapPath(path), gridData);
    }

    }

    Ajax:

    $.ajax({
    type: “POST”,
    url: “@Url.Action(“PotentialClientsReport”, “Reports”)”,
    success: function (data)
    {
    },
    data: {data:exportInfo},
    accept: ‘application/json’
    });

    Thank you in advance.


    Dimitar
    Participant

    Hello jetzky,

    Did you try the solution provided in the NETExport folder of the jQWidgets source code download package? If not, please make sure you have read the file ReadMe.txt first. If it does not work on your side, please share if there are any errors thrown in your browser’s console or any other unexpected behaviour.

    We are looking forward to your answer.

    Best Regards,
    Dimitar

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

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

You must be logged in to reply to this topic.