Find and update a row selectively in Datatable

Find and update a row selectively in Datatable

jithubabujithubabu Posts: 2Questions: 1Answers: 0
edited October 2019 in Free community support

I am planning to update only the cell which shows the status in a particular row which tends to change from time to time, rather than reloading the entire page as it seems to eat up my RAM memory after a while. So can anyone please help me on how to find a particular row in the table by searching for the row using a unique id and updating only the particular cell alone for that particular student( row ).
Each time the status changes an ajax call will be made to the server to fetch the row primary key along with the new status.
I tried using column(1).search() to get the row, but how can i retrieve to update the 3rd cell value for that particular row.

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,598

    Hi @jithubabu ,

    Let's move the discussion here form your other comment.

    If you've got a unique ID in the row, you can define this with rowId. You can then reference this with cell() to update, something like this - where the age column is unique and is being used as the ID.

    Could you look at that, please, and see if it helps. If it's still not working for you, please can you update my example, or link to your page, so that we can see the problem.

    Cheers,

    Colin

This discussion has been closed.