How can we get data once click on pagination buttons ?

How can we get data once click on pagination buttons ?

mallikpk4umallikpk4u Posts: 14Questions: 5Answers: 0

Dears,#

I can able to get the current page data by using following code.

var data = table.rows({ page: 'current' }).data();

Above code give the content of the current page(Example 10 data). But when I click on pagination button then I won't get any data.

So how to get the data when we click on each pagination button ?

Thank you.

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 20,309Questions: 26Answers: 4,770
    Answer ✓

    Suspect the problem is with your click event. This FAQ should help.

    Kevin

  • mallikpk4umallikpk4u Posts: 14Questions: 5Answers: 0

    Thanks Kevin. I got the solutions, below is the code for getting the data after clicking the next pagination buttons.

    $('.paginate_button', this.api().table().container()).on('click', function(){
    alert('next');
    });

This discussion has been closed.