Adding a new Row

Adding a new Row

mehmetakifalpmehmetakifalp Posts: 2Questions: 0Answers: 0
edited September 2013 in DataTables 1.8
Hi guys

I use datatables 1.8.2. I want to make "add new row" button.

I Find this page = > http://datatables.net/examples/api/add_row.html

And I fixed my projected completely. But, When I was clicked "Add Button" script give me console error.

Error content :

"TypeError: a is null
http://localhost:8090/site/resources/js/table/jquery.dataTables.min.js
Line 47"

What is it wrong, it is not work.

see you
thank you

Replies

  • jhcomputejhcompute Posts: 26Questions: 0Answers: 0
    Hello,
    If you are trying to add a row, I would suggest using the editor.

    http://editor.datatables.net/

    It will allow you to perform CRUD. The one that you are linking to is to add a static row. Where the editor will allow you or a user to add a row based upon entry.

    Cheers...
  • mehmetakifalpmehmetakifalp Posts: 2Questions: 0Answers: 0
    thank you jhcompute. But I dont buy a editor. I need to different way...
  • jhcomputejhcompute Posts: 26Questions: 0Answers: 0
    Your welcome,

    If you are looking to perform functions like the editor or only add a new row/record from user input, then you will have to write the code to do this. That is what the editor add-on does. Plus, when you purchase it helps Allan the developer of datatables. Try the 15 day free trial and see if it fits your needs.

    Cheers...
This discussion has been closed.