Counting numbers of things in a column...
Counting numbers of things in a column...
nickschurch
Posts: 18Questions: 0Answers: 0
Hi All,
I'm not quite sure how to go about counting things in a datatables column.
The situation is that I have a tabel with say 35k rows in it that has filters which filter it down to 3k rows. bInfo does a great job at displaying this, but I'd like to display two other bits of information. I'd like to display the number of filtered rows with a value in column 1 that match a string pattern, say [code]/_at/[/code] and, the number of unique values found in the set of values that don't match this pattern.
I'm at a bit of a loss where I could put this counting... as part of the custom filtering function I'm pushing to $.fn.dataTableExt.afnFiltering ?
I'm not quite sure how to go about counting things in a datatables column.
The situation is that I have a tabel with say 35k rows in it that has filters which filter it down to 3k rows. bInfo does a great job at displaying this, but I'd like to display two other bits of information. I'd like to display the number of filtered rows with a value in column 1 that match a string pattern, say [code]/_at/[/code] and, the number of unique values found in the set of values that don't match this pattern.
I'm at a bit of a loss where I could put this counting... as part of the custom filtering function I'm pushing to $.fn.dataTableExt.afnFiltering ?
This discussion has been closed.
Replies
Allan