jQuery UI Widgets Forums Grid Tag aggregates

This topic contains 5 replies, has 2 voices, and was last updated by  Todor 4 years, 10 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • Tag aggregates #105830

    nostromo
    Participant

    Dear, I have a grid where I am showing a quantity of a column using:

    aggregates: [‘count’]

    all good, this shows me as a result in the statusbar
    count: amount

    The query is how I can tell you to just show me the amount and not the “count:” tag

    From already thank you very much

    Tag aggregates #105843

    Todor
    Participant

    Hello nostromo,

    I would suggest you to review the following demo. It shows different kinds of aggregates.

    Let us know if you need further assistance.

    Best Regards,
    Todor

    jQWidgets Team
    https://www.jqwidgets.com

    Tag aggregates #105868

    nostromo
    Participant

    understood, but my problem now goes by the count function, this gives me the total rows of the column, but I need to know the number of cells not empty in the column.

    What would be the way to evaluate that?

    Tag aggregates #105877

    Todor
    Participant

    Hello nostromo,

    You could check in the demo that I’ve sent in my previous post how In Stock/Not In Stock aggregates are done. They show how many rows are checked and how many are not.

    Best Regards,
    Todor

    jQWidgets Team
    https://www.jqwidgets.com

    Tag aggregates #105888

    nostromo
    Participant

    Excellent, the code tells me the rows with data, but I still have the problem of how to remove the tag “In Stock:”

    If I change to “”: I keep getting the : and the result.

    I just need the result

    aggregates: [{ ‘In Stock’:
    function (aggregatedValue, currentValue) {
    if (currentValue) {
    return aggregatedValue + 1;
    }
    return aggregatedValue;
    }
    }]

    Tag aggregates #105922

    Todor
    Participant

    Hello nostrom,

    Please review the following example whether it fits your needs.

    Let us know if you need further assistance.

    Best Regards,
    Todor

    jQWidgets Team
    https://www.jqwidgets.com

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

You must be logged in to reply to this topic.