Adding new rows issue

Adding new rows issue

lngphplngphp Posts: 22Questions: 0Answers: 0
edited February 2014 in General
Adding new rows, I get: "DataTables warning (table id = 'example'): Requested unknown parameter 'userid' from the data source for row 3" error.
Could someone take a look please: http://jsfiddle.net/6tK7K/23/

Replies

  • allanallan Posts: 63,692Questions: 1Answers: 10,500 Site admin
    You are adding an array of data using fnAddData, but your data source in aaData are objects. You are also explicitly telling DataTables to use object properties through the use of mDataProp . You want to add an object of that same structure - not an array.

    Allan
  • lngphplngphp Posts: 22Questions: 0Answers: 0
    Thanks for your help, but I could not get it working. If you have a minute, please show me an example?
  • allanallan Posts: 63,692Questions: 1Answers: 10,500 Site admin
    Just pass in the object: http://jsfiddle.net/6tK7K/24/
  • lngphplngphp Posts: 22Questions: 0Answers: 0
    Thanks so much! :-)
This discussion has been closed.