Access displayed results

Access displayed results

DitowDitow Posts: 2Questions: 1Answers: 0
edited May 2015 in Free community support

Hi,

I need to access only the currently displayed rows of my table in my event listener.

I tried using table.info or table.data() but I always get global informations.

I need to display the datas of the table in a chart so I need the ids of the displayed rows (1st column)

Here is a jsfiddle :

http://jsfiddle.net/fs7antxy/2/

Thanks

Answers

  • allanallan Posts: 63,680Questions: 1Answers: 10,498 Site admin

    Use the selector-modifier option to limit the data to just the current page - for example table.rows( { page: 'current' } ).data();

    Allan

  • DitowDitow Posts: 2Questions: 1Answers: 0

    That's exactly what I needed; thanks!

This discussion has been closed.