jQWidgets Forums

jQuery UI Widgets Forums DataTable Number of Records Retrieved?

This topic contains 2 replies, has 2 voices, and was last updated by  Mark Hargrove 10 years, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Number of Records Retrieved? #64887

    Mark Hargrove
    Participant

    I’m sure I must be overlooking something obvious — how do you get the number of records in a DataTable? I’ve tried several different methods (such as creating a ‘loadComplete’ function in the dataAdapter, but the length of the data array isn’t dependable — it quite often has the value ‘0’ after AJAX query is made to retrieve the data. The dataTable itself is being populated correctly.

    Why isn’t there a datatable property called ‘recordCount’ or ‘totalRecords’ or whatever?

    Number of Records Retrieved? #64890

    Peter Stoev
    Keymaster

    Hello Mark Hargrove,

    There’s getRows method which returns Array. As a JavaScript Array, it has “length” member.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    Number of Records Retrieved? #64893

    Mark Hargrove
    Participant

    Ah, I knew it had to be something simple.

    Thanks very much!

    -M.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.