Multiple "No data available in table" lines if specific options are set
Multiple "No data available in table" lines if specific options are set
t10i
Posts: 1Questions: 0Answers: 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 ).
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.)
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.)
This discussion has been closed.
Replies
Allan