Would it be possible to add a setting to display the number of items that were grouped?

Would it be possible to add a setting to display the number of items that were grouped?

paulobocpauloboc Posts: 12Questions: 0Answers: 0

just like in the attached screenshot

Replies

  • kthorngrenkthorngren Posts: 22,286Questions: 26Answers: 5,125

    Not sure what your screenshot is showing. Is this using RowGroup? If yes then use rowGroup startRender or rowGroup.endRender, similar to this example. If this doesn't help then please provide more details of what you are using. Maybe post your Datatables init code so we can see your config.

    Kevin

  • paulobocpauloboc Posts: 12Questions: 0Answers: 0
    edited September 30

    I don’t use rowGroup, I’m using ColumnControl - this is my configuration.

    columnControl: [
    'search',
    'order',
    [
    'searchList',
    {
    extend: 'dropdown',
    content: ['colVis'],
    },
    ],
    ]

  • allanallan Posts: 65,162Questions: 1Answers: 10,796 Site admin

    Ah, you want to show the number of entries (count) in the column with that value? That is not a feature of ColumnControl at this time I'm afraid, but it is one I can add to the list.

    Allan

  • paulobocpauloboc Posts: 12Questions: 0Answers: 0

    Yes, that’s exactly it. It will be very useful — thank you, Allan!

Sign In or Register to comment.