List Manager Forum

Showing count of total number of rows returned

User Alex King 2026-05-19 15:13:02

Hi - is there a way of showing the total number of rows returned after a search of a List Manager table? I know there is the Pager information but it would be useful to simply have at the top 'N rows returned', when someone has done a particular search using the filters. I see you have counts for number types but these appear at the very end of the table and we really need to have the figure before the table.

Moonsoft support 2026-05-20 12:07:28

Hi,
there is no way to configure a table footer to show on top of the table,sorry. In order to show this information inside another section, you'd need to add some custom js code in order to copy it each time it changes with search/filters...etc. The code is not straightforward, we show below an example but you may have to adapt it to your case depending on the position you want to show the text. The approach is this one:

- enable the 'totals->count' for one of the columns, so you will get the number of rows (as you say, at the bottom row).
- with the js, define a callback function, that contains an observer, it will launch each time data is recovered. This function finds the content of the footer, creates a new div inside 'mstable' with and inserts the text there. It will show just before the table contents.

var _lmcallback = <><>



...
List Manager

Build different lists for your site

Buy now!
...
Support/development 10 hours

Get a bigger amount of hours for more complex tasks and get a 10% discount

Buy now!