Count Cell Values

Count Cell Values

JasonWellsJasonWells Posts: 6Questions: 3Answers: 0
edited February 2016 in General

One of my columns on my table is a Status column. The values are "Pending","Completed","Cancelled","Rescheduled","Reassigned","Not Done". Is there a way that Datatables can count the number of records for each value and display it under the Showing 1 of x entries?

Example:
Showing 1 to 20 of 139 entries

10 Pending, 5 Completed, 1 Cancelled, 2 Rescheduled, 3 Reassigned, 0 Not Done

Answers

  • allanallan Posts: 63,685Questions: 1Answers: 10,498 Site admin
    edited February 2016

    There isn't a built in way of doing that, but you could use infoCallback to add it yourself.

    Allan

    edit: Nice idea for a plug-in that :-)

This discussion has been closed.