Update a value Change in a Datatable

Update a value Change in a Datatable

Rectec013Rectec013 Posts: 42Questions: 10Answers: 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: 3,342Questions: 35Answers: 394

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

  • Rectec013Rectec013 Posts: 42Questions: 10Answers: 0

    yes

  • Rectec013Rectec013 Posts: 42Questions: 10Answers: 0

    any ideas ?

  • kthorngrenkthorngren Posts: 20,141Questions: 26Answers: 4,736

    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: 42Questions: 10Answers: 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: 61,439Questions: 1Answers: 10,053 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: 3,342Questions: 35Answers: 394

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

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

  • Rectec013Rectec013 Posts: 42Questions: 10Answers: 0

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

  • allanallan Posts: 61,439Questions: 1Answers: 10,053 Site admin
    Answer ✓

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

    Allan

  • Rectec013Rectec013 Posts: 42Questions: 10Answers: 0

    thanks for Help Allan .
    Josh

This discussion has been closed.