jQWidgets Forums

jQuery UI Widgets Forums Grid jqxGrid columncomputed when exported as json does not have the value

This topic contains 1 reply, has 2 voices, and was last updated by  ivailo 10 years ago.

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

  • kadursandy
    Participant

    jqxGrid columncomputed when exported as json does not have the value of the computed column(Total) in the json export.
    Price, Quantity and Total are the columns. Here computed column is Total when I do JSON export data into a variable. But the Total value correctly shows in the grid when exported its null or no value, shown below..
    $(“#jsonExport”).click(function () {
    var data = $(“#jqxgrid”).jqxGrid(‘exportdata’, ‘json’);
    alert(data);
    });

    Here the alert data has [{“Quantity”:”2.00″,”Price”:”$100.00″,”Total”:””},{“Quantity”:”3.00″,”Price”:”$200.00″,”Total”:””}]
    Here Total has no value in the JSON export . Can you please help me with this.


    ivailo
    Participant

    Hi kadursandy,

    Computedcolumns are only masked to have a visible value. In reality they are empty.
    So you have to set the cell value ad then to export the data.
    The other way is to set the JSON’s “Total” value after the export.

    Best Regards,
    Ivailo Ivanov

    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.