Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82694

How to know if row is selected in createdRow event.

$
0
0

Hello, I need to know if a row is selected when I refresh the grid.

I have this in "createdRow" event:

createdRow: function (row, data, dataIndex) {
                console.log(row);
                console.log($(row).hasClass('selected'));
}

I can see that the TR has the class "selected" in it, however, the hasClass method returns false. How can I do it?

Thanks
Jaime


Viewing all articles
Browse latest Browse all 82694

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>