Use editable with JSON

Use editable with JSON

yearsinrockyearsinrock Posts: 1Questions: 0Answers: 0
edited May 2011 in General
I am using the editable example...but when I add a json source using sAjaxsource the table loads up but the entries are not editable anymore. Why?

Replies

  • tschantschan Posts: 3Questions: 0Answers: 0
    Probably you forgot to add the id-Attribute into the tr-Tag. See the Example-Text: "Note also that this example makes use of the information in the 'ID' attribute of the TR element...". I just have the same problem and i do not know how to add this attribute to the tr-Tag (using ajax-source).
  • tschantschan Posts: 3Questions: 0Answers: 0
    i think this is the solution:

    http://datatables.net/forums/comments.php?DiscussionID=254&page=1#Item_0
  • tschantschan Posts: 3Questions: 0Answers: 0
    I just found out, that when u set "bServerSide": true, the 'ID' attribute of the TR element will automaticly generated. So the edittable example now works with sAjaxsource too.
This discussion has been closed.