Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 138134

Row ID is undefined for new added row in datatables?

$
0
0

I think this is repeated question, but i see all answers and nothing clear ? I used datatables in my MVC app and everything work perfectly , till i add new row to this datatable using

table.api().row.add 

after that i assigned row id using two methods then draw 1-

row.nodes().to$().attr('id', ID)

2-

row.node().id = ID

When i try to get the new added row id using row.id its undefined and row.data not contain dt_rowid at all. In html i can see the id correctly added How to get the id for the new added row Please help me


Viewing all articles
Browse latest Browse all 138134

Trending Articles



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