How to change total entries displayed in information

How to change total entries displayed in information

LesFLesF Posts: 16Questions: 6Answers: 1

I am populating my table with a client-side JSON array, where the data has been filtered elsewhere and I know the total number of rows, can I make the informational display below the table give my actual total?

I know I can set the record total when the data is loaded from server side, can I override that value when loading on the client?

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,144Questions: 1Answers: 2,586

    Hi @LesF ,

    The totals will be filled in automatically. If you look at this example here, it just takes that array and display the count of the records in it. You don't need to set it manually.

    Cheers,

    Colin

  • LesFLesF Posts: 16Questions: 6Answers: 1
    Answer ✓

    No, I had to complicate things... I am not giving it all of the data, I have filtered it already, so it doesn't know the total.

    The easy solution was just to set "info": false, then provide my own display.

This discussion has been closed.