Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 81910

About modify data row object

$
0
0

I have a little question about when modify DataTable data row.
For example:

// Object DataTable get data row
var dataCell = Dtable.row(row).data();
dataCell.id = 10;

When I modify the property value of data object row, in automatically modify in the DataTable JavaScript Object? And is not necessary to do

Dtable.row(row).data(dataCell);
Dtable.row(row).invalidate();  // Is necessary to Add .draw() when invalidate()?
// Or to do
Dtable.rows().invalidate();  // Is necessary to Add .draw() when invalidate()?

I understood what I need to execute .draw() when I want to update the DOM, but is not clear for me how works .invalidate() and if the data row object is modify automatically modify de JavaScript Object contained by DataTable instance.

I'm waiting for you feedback.


Viewing all articles
Browse latest Browse all 81910

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>