Unable to use fnGetData() after running fnAddTr()

Unable to use fnGetData() after running fnAddTr()

LanFeusT23LanFeusT23 Posts: 4Questions: 0Answers: 0
edited December 2012 in Plug-ins
Hey,

I'm running into this issue where I need to update an entire Row, I can't seem to get fnUpdate() work by passing in the HTML string and the row index. So I'm trying to delete the row and readd it. Which works fine until we have to access that row again.

For example if I add a new TR, I'm fnGetData() is null like in this example: http://jsfiddle.net/GJGaM/ click on "Test Click" then "Retrieve TR Click" and look at the console, the aData is null. Which causes me quite some headaches for hiding/showing columns on the fly later on.

End goal:
I have a table with a hidden column. Each cell is editable in place, once I edit a cell I delete/readd the row (or update it if I fnUpdate can do that, but not working for me). There's an option to display the hidden row, but any row that has been re-added will not work properly due to aData being null.

Am I doing something wrong there?

PS: this is my attempt at using fnUpdate(htmlstring, rowindex) but without success: http://jsfiddle.net/BhBMS/2/
This discussion has been closed.