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

How to select a row that has just been added with editor

$
0
0

I would like for newly created rows to be automatically selected. I've tried the following code:

editor.on('postCreate', function (e, json, data, id) {
            table.row('#' + id).select();
        });

It looks like the data is already in the table at that point, but I can't query out the row yet. Is there another event that I could attach this to?


Viewing all articles
Browse latest Browse all 82143

Trending Articles



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