Add an editable row

Add an editable row

buda_wubuda_wu Posts: 4Questions: 0Answers: 0
edited June 2011 in DataTables 1.8
Hi folks,
I'm newbie in DataTables and Cakephp too.
Has anyone ever tried to add an editable row? I mean, when an user clicks on the 'add new row' anchor (like ' Click to add a new row'), it becomes an editable row?
Besides, when I edit a row, can the td's be a selectbox, instead of an ordinary text input?

Thank you so much!

Replies

  • allanallan Posts: 63,678Questions: 1Answers: 10,497 Site admin
    A bit like this: http://datatables.net/blog/Inline_editing ?

    Allan
  • buda_wubuda_wu Posts: 4Questions: 0Answers: 0
    Hi allan, that's it!
    Thanks!
    But when I test the exemplo, I got the following error:
    "jqTds[0] is null:
    jqTds[0].innerHTML = ''; "

    Why does it occur? I followed exactly what the example says
  • buda_wubuda_wu Posts: 4Questions: 0Answers: 0
    Allan,
    I fixed it changing my jQuery version to 1.5.2
This discussion has been closed.