Again: Requested unknown parameter '1' from the data source for row 0

Again: Requested unknown parameter '1' from the data source for row 0

ymakuxymakux Posts: 3Questions: 0Answers: 0
edited November 2012 in DataTables 1.9
Hello

When I have an empty table always getting the following error message:

[quote]DataTables warning (table id = 'data-table'): Requested unknown parameter '1' from the data source for row 0[/quote]

This is how my empty table looks like:

[code]



SKU
SKU
Weight
Category
Raincover
Tors
Frame
Load
Trademark
Purpose
Text
Language
Published
Related
Sex
Title
Material




No records to display


[/code]

Firebug console log:

[quote]

TypeError: nCell is undefined
[Break On This Error]

nCell.className += ' '+oCol.sClass; (line 669 of jquery.dataTables.js)

[/quote]

Link to debug results http://debug.datatables.net/olihuc

Also I'm using the Data Tables Editable plugin, which fails to load for the empty table.

I have no errors when the table contains at least one row.

Replies

  • allanallan Posts: 63,394Questions: 1Answers: 10,450 Site admin
    You can't have a colspan in a DOM sourced DataTable. The colspan works in the demos where it uses Ajax loading because DataTables throws the row away, replacing it with the Ajax data. But you aren't using Ajax sourced data there.

    Allan
  • ymakuxymakux Posts: 3Questions: 0Answers: 0
    Thanks for quick replay!
This discussion has been closed.