Selecting the Datatable Row from Jquery

Selecting the Datatable Row from Jquery

manishroy1982manishroy1982 Posts: 2Questions: 1Answers: 0

Hello,

I am trying to select a Row in the DataTable through the Code. I have used createRow and in that i am verifying a record data and if its matches it should select the row.

"createdRow": function (row, data, dataIndex) {​​

if (data[0] == batchRunNumber) {​​

$(row).select();

// $(row).addClass('selected');

$(row).trigger('select');

//selectDeselectGrid('select');
}​​

$(row).select() and $(row).trigger('select'); should do the work but unfortunately its not working. If i use $(row).addClass('selected'); & selectDeselectGrid('select'); [Which is inside the row select event] works. In my Page the row got selected , but when i click on the another row both the rows got selected this happens only for the first time. On select time if select the already select row the behaviour work as expected.

Please help me out to fix this.

This question has an accepted answers - jump to answer

Answers

This discussion has been closed.