Where are things in the datatable stored when they are not showing on the current page?

Where are things in the datatable stored when they are not showing on the current page?

dlbarrondlbarron Posts: 23Questions: 1Answers: 0
edited February 2013 in General
And how do I access them?

For example, one of my columns contains a checkbox, each checkbox has an id. When a particular checkbox is being shown on the current page I can access it using the regular jquery syntax $('#chkbox01').is(':checked');

but if that particular checkbox is not on the current page I can't get to it, so I can't check to see if it's checked, and I can't change it.

I assume there is some kind of internal storage for things that are not being currently displayed? Can I get to those things using standard jquery syntax?

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    > Can I get to those things using standard jquery syntax?

    Yes, but you need to use the DataTables $ method - http://datatables.net/docs/DataTables/1.9.4/#$ . That operates on the contents of the table as if all elements were in the DOM (which they are not!).

    Allan
  • dlbarrondlbarron Posts: 23Questions: 1Answers: 0
    Fantastic!!!!!!!!

    That solves a problem I've been having for a couple of weeks as well as one I ran into this morning.

    Thank you sooooo much.
This discussion has been closed.