set data with row().data()

set data with row().data()

donnyyudonnyyu Posts: 1Questions: 1Answers: 0

i have a problem but not sure what's wrong. i have saved data from a table row to variable 'datarow' when i click on a row, and i also get the rowid for that row i clicked, then i changed the data of column #3 with datarow[2]="abc" and tried to update the table with table.row(rowid).data(datarow).draw(), but it doesn't work. The rowid returned is '#2', if i replace the 'rowid' in the table.row statement with table.row('#2').data(datarow).draw(), then it works. Any help will be appreciated! Thanks

Answers

  • allanallan Posts: 62,115Questions: 1Answers: 10,185 Site admin

    Thanks for your question - however, per the forum rules can you link to a test case showing the issue please. This will allow the issue to be debugged.

    Information on how to create a test page, if you can't provide a link to your own page can be found here.

    Thanks,
    Allan

This discussion has been closed.