jQuery UI Widgets Forums Grid Computed Column, Currency not change!

This topic contains 2 replies, has 2 voices, and was last updated by  Storm 10 years, 1 month ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Computed Column, Currency not change! #60211

    Storm
    Participant

    I have changed “currencysymbol” in Default Localization :

    var currencySymbol = "€";
     var localizationobj = $("#jqxgrid").jqxGrid('gridlocalization');
     localizationobj.currencysymbol = currencySymbol;

    In column “Amount” currency is “€” but column “Total” currency is “$”, Why ? How do fix it ?

    { text: ‘Quantity’, dataField: ‘quantity’, cellsformat: ‘D’, width: 150 },
    { text: ‘Amount’, dataField: ‘amount’, cellsformat: ‘c2’, width: 150 },
    { text: ‘Total’, dataField: ‘total’, cellsformat: ‘c2’, width: 200,
    cellsrenderer: function (index, dataField, value, defaultvalue, column, rowdata) {
    var total = parseFloat(rowdata.amount) * parseFloat(rowdata.quantity);
    return ‘<div style=\\’margin: 4px;\\’ class=\\’jqx-align\\’>’ + dataadapter.formatNumber(total, column.cellsformat) + ‘</div>’ ; }
    } “/>

    Currency

    Thanks for looking!

    Computed Column, Currency not change! #60214

    Peter Stoev
    Keymaster

    Hi Storm,

    Because in your custom cellsrenrerer you do not pass a localization object and by default the symbol is “$”.

    Best Regards,
    Peter Stoev

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

    Computed Column, Currency not change! #60215

    Storm
    Participant

    Dear Peter Stoev,

    How to fix it ?

    Thank you very much 🙂

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

You must be logged in to reply to this topic.