LumaPictures / meteor-jquery-datatables

Sort, page, and filter millions of records reactively.
http://jquery-datatables.meteor.com
MIT License
98 stars 29 forks source link

Search doesn't work properly #41

Open francisbyrne opened 10 years ago

francisbyrne commented 10 years ago

Reproduction

  1. Clone https://github.com/francisbyrne/datatables-example
  2. mrt install; meteor
  3. Open localhost:3000 in browser
  4. Browse through data items; there are a bunch of BHP.AX items and a bunch of NAB.AX
  5. Go back to the first page and enter NAB.AX into the search bar

    Expected

Table displays NAB.AX rows in the table Table info shows filtered info, e.g. "Showing 1 to 10 of 16 entries (filtered from 32 total entries)" Table pagination is reduced to only 2 pages

Actual

Table displays "No matches found", until you use the pagination to go to the 2nd page Table info still shows all rows Table pagination is not reduced (still shows all pages)

LDubya commented 10 years ago

I'm also having this issue. If I search for a term that exists on a different page than the one I am currently viewing, the table will state that it has zero matches.

If I switch to the page with the search term and then do the search, the table will finally show that row as a result.

If I show all the rows in one page by making the max rows per page more than the number of rows in the table, and then do the search, then the search result will return.