Multiple "No data available in table" lines if specific options are set

Multiple "No data available in table" lines if specific options are set

t10it10i Posts: 1Questions: 0Answers: 0
edited October 2012 in Bug reports
There is a bug where an empty table will produce an additional "No data available in table" line whenever it is redrawn.

Observed in version:
1.9.3

Reduced test case:
http://web.dextermedia.de/temp/dttest/

Debugger output:
http://debug.datatables.net/ebamon

Steps to reproduce:
1. Create an empty table (that is, a DataTables-compatible table with an empty ).
2. Let DataTables process the table, using the following options:
[code]
bScrollInfinite: true,
bFilter: false,
bSort: false
[/code]
3. Call the DataTable object's fnDraw() function after the table has been rendered.

Expected result:
The table looks as before.

Actual result:
The "No data available in table" line is duplicated.

Likely culprit:
fnDraw() will only remove its rows if infinite scrolling is off, if filtering or sorting are on or if it's currently initializing itself. If infinite scrolling is on and sorting and filtering are off then fnDraw() will not remove its child rows, however it will still add a "No data available in table" row.


(On an unrelated note, DataTables live seems to support no newer version than 1.9.1.)

Replies

  • marcusmarcus Posts: 3Questions: 0Answers: 0
    I get this same behavior with only using bScrollInfinite and no other options in 1.9.4. The message "No data available in table" is rendered twice.
  • allanallan Posts: 63,381Questions: 1Answers: 10,449 Site admin
    Agreed - this is a bug. Marked to look at as part of 1.10.

    Allan
This discussion has been closed.