Quantcast
Channel: DataTables 1.9 — DataTables forums
Viewing all articles
Browse latest Browse all 1816

Delete, Update and Reorder Issues

$
0
0
I am using DataTables to dynamically create DataTables on the fly. In doing so, I am running into a couple of issues. The tables are populated using JSON data passed back from a server call via a URL. I am initialing the DataTable using aoColumns instead of aoColumnDefs. Not sure if this is part of the issue.

Upon calling fnDeleteRow, I am getting the following error:
Unable to get property 'aoData' of undefined or null reference.
I am passing in the correct index of the row I am deleting.

Upon calling fnUpdate, I am getting the following error:
Unable to get property 'aoData' of undefined or null reference.
I am passing in the correct index of the row I am updating and JSON that matches the JSON that initially populated the grid.

I am also using the row reordering plugin. Upon dragging a row to a new position, the grid is not passing in expected values. If I was to drag a row to a new position, fnMoveRows would be called as follows:

oTable - table object
sSelector - "tbody tr"
iCurrentPostion - "Test" (This is the value of the column the sort was initiated from)
iNewPosition - "NaN"
sDirection - "forward"
id - "row_1bb8f567-69dc-49d8-ad18-313663df676c"
sGroup = ""

Viewing all articles
Browse latest Browse all 1816

Trending Articles