Update Row after Ajax

Update Row after Ajax

mifosmifos Posts: 6Questions: 3Answers: 0

Hello,
So i have a table with some inputs and when i update the input i run an ajax function.
After the ajax(the ajax updates the current value of the input) the responseData on .done function
is a json with the row values, like this

.done(function (responseData){
table.row(table_row).data(responseData); //i have the table row

}
So i do the above nothing happens

but if i do

.done(function (responseData){
var newData;
newData = ["1","2"];
table.row(table_row).data(newData); //i have the table and the table row

}
it will work...

responseData and the newData are 100% the same even if i use the JSON.parse for the responseData nothing happens...
any idea ???
Thanks in advance

Answers

  • mifosmifos Posts: 6Questions: 3Answers: 0

    i fount the answer :P, if i have open the + sign to see all the hidden rows, row will be updated but not appeared i will have to close the + and re-open it

This discussion has been closed.