How to update only orthogonal (but not displayed) data in DataTables?

How to update only orthogonal (but not displayed) data in DataTables?

Andrey_Andrey_ Posts: 5Questions: 4Answers: 0
edited July 2016 in Free community support

We can use cell().data() to set cell data. But what if we need to just update orthogonal cell properties, but not main display data, which is rendered in the cell? I.e. we have this data for the cell and we just want to update current_value while keeping display unchanged in the DOM:

"digit": {
    "display": "<select><option selected value=`1`>1</option><option value=`2`>2</option></select>",
    "current_value": "1"
}

My use case is using <select> within a cell — when option changes I want to keep select in place and only change orthogonal data.

I tried cell().invalidate() while adding data- attribute to the DOM element like described here, but it does not seem to work — in the end I have just HTML-contents of the cell in the cell().data() response and orthogonal cell data is gone. I am using ajax data to initially populate the table

This discussion has been closed.