Get data row value from row index

Get data row value from row index

sanovasanova Posts: 8Questions: 0Answers: 0
edited June 2012 in DataTables 1.9
Hi,

i'm trying to get all values row using row index with no success.
Is there a way to do that or is it possible only with "click event" on selected row?

[code]
aData = oTable.fnGetData(indexSelectedRow);
[/code]

or something like this:
[code]
var aPos = oTable.fnGetPosition(oTable.$('tr.row_selected'));
aData = oTable.fnGetData(aPos);
[/code]

or:
[code]
aData = oTable.fnGetData(oTable.$('tr.row_selected'));
[/code]

The error is: "nNode.nodeName is undefined"


Thanks in advance

Replies

  • sanovasanova Posts: 8Questions: 0Answers: 0
    I solved: "aPos" as global variable on select click event, and then this function:

    [code]
    aData = oTable.fnGetData(aPos);
    [/code]
This discussion has been closed.