On createdRow
On createdRow
Hi,
i am using createdRow in order to highlight previous selection of user.
The problem is that in debugging i see the correct row with highlight (active in bootstrap) but when all the table finish to render the highlighted row jump to the next row.
my code:
'''"createdRow": function (row, data, index) { '''
''' if (tmpCustomers.indexOf(data[2]) !== -1) { '''
''' $(row).addClass('active'); '''
''' } '''
''' } '''
thanks for any help
Answers
Ignore this!!! My Mistake. I used the "index" for fetching data on the row click event.
it should be index - 1