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

how can i set columns css(or add class) when add new row with fnAddData

$
0
0
Hi all,
i add a new row with fnAddData function then every columns css class lost , how can i should do to add that class ?

code like this :
$("#addRow").bind("click", function () {
            var oTable = $('.postTable-published').dataTable();
            var a = oTable.fnAddData([
                "<img width=\"40px\" height=\"40px\" alt=\"\" src=\"c47a6c94-d736-477b-8459-67af42084ff3?w=120&amp;h=120\">",
                "add new row",
                "<span>Video</span>",
                "",
                "1",
                "1",
                "true",
                "false",
                "false",
                "dd"
            ]);
        });

Viewing all articles
Browse latest Browse all 82260

Trending Articles



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