Why isn't DT initializing when there are headers in the HTML?

Why isn't DT initializing when there are headers in the HTML?

javajoshjavajosh Posts: 2Questions: 1Answers: 0

Here's the demo: http://jsbin.com/dayace/edit?html,output

If you uncomment the header section of the table, you'll see that DT doesn't initialize.

Answers

  • javajoshjavajosh Posts: 2Questions: 1Answers: 0

    Never mind - it looks like HandsonTable (http://docs.handsontable.com/0.15.1/tutorial-quick-start.html) will work better for my purposes anyway, as it is editable without a license.

  • allanallan Posts: 63,689Questions: 1Answers: 10,500 Site admin

    Hi,

    No problem. I took a look anyway and just for reference, it didn't work as your HTML header only has 6 columns, but the DataTable initialisation has 7 columns defined. That discrepancy causes an error to occur. Adding one more column to the HTML allows it to work as expected.

    Allan

This discussion has been closed.