Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 81688

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

$
0
0
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 <tbody>).
2. Let DataTables process the table, using the following options:
bScrollInfinite: true,
bFilter:         false,
bSort:           false
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.)

Viewing all articles
Browse latest Browse all 81688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>