Unable to Update Row Index 0

Unable to Update Row Index 0

juanstajuansta Posts: 1Questions: 1Answers: 0
edited September 2014 in Free community support

I am running into a bit of a weird issue.

I am trying to update a specific cell value with the results of an AJAX request. When the Request is completed successfully the following occurs -

// get API for specific dataTable
var table = $('#jobTable').DataTable();
                  
// find row in datatable for given "name"
var row = table
     .column(0)
    .data()
    .indexOf(name);
               
// output our "returnedData" to our required cell - always column index 4
table
    .cell(row, 4)
    .data(returnedData)
    .draw()

The above works as expected when the Row index is anything greater than 0.
When we try and update the first row (row === 0) nothing gets updated...

What am I missing?

Thanks

This discussion has been closed.