jQWidgets Forums

jQuery UI Widgets Forums DataTable Aggregates on the group

This topic contains 4 replies, has 2 voices, and was last updated by  Francisco 9 years, 7 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • Aggregates on the group #76281

    Francisco
    Participant

    Another question about aggregates , can bind it by group, for example , I create a jqxTable to show by customer group total order or recipe?

    Aggregates on the group #76296

    ivailo
    Participant

    Hi Francisco,

    You can calculate your total and display it in groupsRenderer.
    There is similar example about jqxGrid aggregates total, so it can be helpful for you.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

    Aggregates on the group #76382

    Francisco
    Participant

    OK, I get it, but imegine the following columns, for example, Customer, City, and Total, right?
    I would like to group by client, which is easy, use this:
                                        groups: [‘customer’],
                                         groupsRenderer: function (value, RowData, level) {
                                             return “Client: <b>” + value + “</ b>”;
                                         },
    Now comes the problem, as I would put the total for each client side in his name? Understood?

    I’m not grouping by all, just including this information in function groupsRender!

    Aggregates on the group #76503

    ivailo
    Participant

    Hi Francisco,

    You have first to calculate some result and then to display it in groupsRenrer.
    Please look at this demo.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

    Aggregates on the group #76636

    Francisco
    Participant

    Thank Ivailo!!!

    It was exactly what I was trying to do, thanks for your insight!

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

You must be logged in to reply to this topic.