Error requested unknown parameter '' for row 0

Error requested unknown parameter '' for row 0

drakula1234drakula1234 Posts: 58Questions: 1Answers: 0

Allan, I have data for 6 columns, I compute the sum of the columns(2-6) and add that as a new column to the existing datatable as total.
I am getting 'requested unknown parameter '' for row 0'. I could not resolve the issue. Here is the link to debugger
http://debug.datatables.net/aboxab.

Am I doing something wrong ?

This question has an accepted answers - jump to answer

Answers

  • ignignoktignignokt Posts: 146Questions: 4Answers: 39
    Answer ✓

    It might be your "mData": "" part. I think you have to use "mData": null and you might have to add a default value, I'm not positive. "mData": null, "sDefaultContent":""

  • drakula1234drakula1234 Posts: 58Questions: 1Answers: 0

    thanks for the reply, after declaring sDefaultContent: '' it doesn't show that error on the page

  • allanallan Posts: 63,540Questions: 1Answers: 10,476 Site admin

    Yup - @ignignokt is bob on. You need to tell DataTables what to do with null data (it won't just display an empty string since, unlike Oracle null !== ''. Also better to use mData: null otherwise DataTables will try to read from an empty string parameter.

    Allan

This discussion has been closed.