TableTools have error when select rows.

TableTools have error when select rows.

phuonghvphuonghv Posts: 3Questions: 0Answers: 0
edited September 2013 in General
Hello every one, I use DataTable to build my web app with library:
DataTables v1.9.4
JQuery v1.8.2
TableTools v2.1.4.

The first when I initialize DataTable it work OK!
But when I reinitialize DataTables I can not select rows.
TableTools info error "TypeError: this.s.dt.aoData[pos] is undefined"
return (this.s.dt.aoData[pos]._DTTT_selected===true) ? true : false; TableTools.js (line 397)


if (oTable != null) {
oTable.fnClearTable();
oTable.fnDestroy();
}
oTable = $('#memberSearchResult').dataTable({
"iDisplayLength" : 5,
"aaData" : parentArray,
"aoColumns" : [ {
"mData" : 0
}, {
"mData" : 1
}, {
"mData" : 2
}, {
"mData" : 3
}, {
"mData" : 4
} ],
"bFilter": false,
"sPaginationType": "full_numbers",
"bInfo": true,
"oLanguage": {
"sUrl": "../js/dataTables.japan.txt"
});


Can you help me fix this bug?
Thank you so munch!

Replies

  • phuonghvphuonghv Posts: 3Questions: 0Answers: 0
    Sorry, I reedit title of my post:
    TableTools can not select rows when reinitialize.
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Can you try TableTools 2.1.5 - the current release of TableTools please? I think it is fixed there. Even better would be to try the current development code in git.

    Allan
This discussion has been closed.