Update a value Change in a Datatable

Update a value Change in a Datatable

Rectec013Rectec013 Posts: 22Questions: 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 :)

This question has an accepted answers - jump to answer

Answers

  • tangerinetangerine Posts: 1,782Questions: 6Answers: 193

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

  • Rectec013Rectec013 Posts: 22Questions: 3Answers: 0

    yes

  • Rectec013Rectec013 Posts: 22Questions: 3Answers: 0

    any ideas ?

  • kthorngrenkthorngren Posts: 1,108Questions: 16Answers: 228

    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: 22Questions: 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: 41,522Questions: 1Answers: 5,198 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,782Questions: 6Answers: 193

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

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

  • Rectec013Rectec013 Posts: 22Questions: 3Answers: 0

    Heyy all :smile:
    it is exactly what i want update multiple records simultaneously .
    is it possible ?

  • allanallan Posts: 41,522Questions: 1Answers: 5,198 Site admin
    Answer ✓

    Certainly. Select all rows in this example and edit them as you wish.

    Allan

  • Rectec013Rectec013 Posts: 22Questions: 3Answers: 0

    thanks for Help Allan .
    Josh

Sign In or Register to comment.