How to get the data displayed in the current page?

How to get the data displayed in the current page?

JulienJulienJulienJulien Posts: 1Questions: 1Answers: 0

Hi everyone,

First, thank you for this fantastic plug-in!

Here is my problem: I don't have a huge amount of data to display in the table but i'm generating a knob (a small chart) for and on each row. The global processing takes long if it goes for every row of the table so I'm trying to figure out how I could get from the datatable the data currently displayed in order to process only the necessary knobs to display on the current paging.

Am I clear? :)

Thanks for you help!!

Answers

  • kthorngrenkthorngren Posts: 21,171Questions: 26Answers: 4,922

    You can use selector-modifier to limit the rows to the page and other options. As shown in the docs you will use something like table.rows( {page:'current'} ).data();.

    Kevin

This discussion has been closed.