to get selected rows error

to get selected rows error

merihmerih Posts: 24Questions: 0Answers: 0
edited March 2012 in General
Hello,

I'm trying to get selected rows from the DataTable. The code below was working before, but It doesn't work right now and I dont know why.
I've just upgraded DataTable v1.8 to v1.9.0 maybe this is the reason. Anyway, in the "fnGetSelectedMatcedRow" fuction, I cant get the value of the first cell of the selected row. aTrsVal[i][0] returns "undefined".

[code]

function getSelectedRows(){
var selectedRows = new Array();
var exampleTable = $('#example3').dataTable( );

selectedRows = fnGetSelectedMatcedRow(exampleTable);

var hiddenSelectedArray = "";
for ( var i=0 ; i

Replies

  • merihmerih Posts: 24Questions: 0Answers: 0
    Sorry It was my fault :) I found the differences..
    I use mDataProp in aoColumns so It should be "aTrsVal[i].systemId".
This discussion has been closed.