jQWidgets Forums

jQuery UI Widgets Forums Grid Aggregate on comma separated value

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Aggregate on comma separated value #90738

    vasker
    Participant

    May Grid having payable column with comma separated value [1,233] following code not working for aggregate. [parseInt(currentValue.replace(/[^0-9]/g, ”)]
    [to replace comma .]

    ———————————————
    function (aggregatedValue, currentValue) {
    if (currentValue) {
    return aggregatedValue + parseInt(currentValue.replace(/[^0-9]/g, ”));
    }

    Aggregate on comma separated value #90762

    Hristo
    Participant

    Hello vasker,

    If I understand you correctly you could try this approach:

    var localizationobj = {};
    localizationobj.decimalseparator = ",";
    $("#jqxgrid").jqxGrid('localizestrings', localizationobj);

    Hope this helps.

    Best Regards,
    Hristo Hristov

    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.