Update a value Change in a Datatable

Update a value Change in a Datatable

Rectec013Rectec013 Posts: 20Questions: 3Answers: 0

Hello , i want to ask about how to update a value in a Datatable .
I change a value (with edit function) and after saving i expect to see the "new_value" all over at the same column .
Thanks for Help :)

Answers

  • tangerinetangerine Posts: 1,588Questions: 6Answers: 167

    What "edit function"? Are you using DataTables' Editor?

  • Rectec013Rectec013 Posts: 20Questions: 3Answers: 0

    yes

  • Rectec013Rectec013 Posts: 20Questions: 3Answers: 0

    any ideas ?

  • kthorngrenkthorngren Posts: 774Questions: 14Answers: 155

    After making your update the server is expected to return the updated row. Are you seeing this? Its described in this document:
    https://editor.datatables.net/manual/server

    Kevin

  • Rectec013Rectec013 Posts: 20Questions: 3Answers: 0

    thanks Kevin .
    I think that it will not possible to give the server the information that all Values in a column will be changed after an update . From Client side with render it will be for sur easy .

    Josh

  • allanallan Posts: 40,558Questions: 1Answers: 4,957 Site admin

    Hi Josh,

    Is the problem that the new values are not shown in the table? I fear I haven't fully understood the question.

    If that is the issue, then Kevin is correct, you need to have the server return the JSON format that Editor expects.

    Allan

  • tangerinetangerine Posts: 1,588Questions: 6Answers: 167

    ....all Values in a column will be changed after an update

    Are you saying that you want to update multiple records simultaneously?

Sign In or Register to comment.