bottom table summary appears as 'Showing 1 to 5 of undefined entries'

bottom table summary appears as 'Showing 1 to 5 of undefined entries'

javahollicjavahollic Posts: 11Questions: 0Answers: 0
edited February 2010 in General
I'm loading Json data from a server, where does 'undefined' come from? Is there something in the JSon data that tells the table what 'it' is?

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    There certainly is - if you are using server-side processing (which you must be in this case) you need to return a couple of parameters to tell DataTables how many records there are in the results set. These parameters are defined here:
    http://datatables.net/usage/server-side

    Having a look at the XHR in the demo can also be useful:
    http://datatables.net/examples/data_sources/server_side.html

    Allan
This discussion has been closed.