Reload only one column

Reload only one column

Hydro0Hydro0 Posts: 4Questions: 2Answers: 1

Hi

I use datatable to display data from mysql.

One of my column is just a rule of three : row A value = (row B value * 10 000) / Sum column B

So when I delete a row, all others values change because sum column B change.

I delete a row and I remove it from table , that part is ok. But how to update this column only (others columns don't change) without losing position ?

I use scroller and for now I use Ajax.reload() but if I scroll to row 200 and delete it, I go back to row 1 :(

Is there a solution to this problem ?

Thank for your help.

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 21,300Questions: 26Answers: 4,945
    edited July 2018 Answer ✓

    I'm not sure if you have one or two issues.

    but if I scroll to row 200 and delete it, I go back to row 1

    The second example in the ajax.reload() documentation should help.

    But how to update this column only (others columns don't change) without losing position ?

    Not sure I understand this comment. Do you mean column or row?

    Kevin

  • Hydro0Hydro0 Posts: 4Questions: 2Answers: 1

    Thanks !

    At first I wanted to reload only one column without losing position.

    But know with you answer, I can reload all the table and keep the same position.

This discussion has been closed.