_iRecordsDisplay and _iRecordsTotal always zero

_iRecordsDisplay and _iRecordsTotal always zero

wpswps Posts: 15Questions: 0Answers: 0
edited November 2009 in General
What are _iRecordsDisplay and _iRecordsTotal for? They seem to always have a value of zero.

Replies

  • allanallan Posts: 61,839Questions: 1Answers: 10,134 Site admin
    Hi wps,

    As mentioned in your other thread, you shouldn't really use variables which are prefixed with an underscore as they are reserved for use by DataTables. But if you want to know:

    _iRecordsDisplay - When using server-side processing this is the number of rows which match the size of the data set, after filtering
    _iRecordsTotal - When using server-side processing this is the number of rows which match the full data set

    Since the behaviour is different between server-side processing and client-side processing, you should use the functions oSettings.fnRecordsDisplay() and oSettings.fnRecordsTotal() to get these values.

    Regards,
    Allan
This discussion has been closed.