how can i set columns css(or add class) when add new row with fnAddData
how can i set columns css(or add class) when add new row with fnAddData
lass_name
Posts: 1Questions: 0Answers: 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 :
[code]
$("#addRow").bind("click", function () {
var oTable = $('.postTable-published').dataTable();
var a = oTable.fnAddData([
"",
"add new row",
"Video",
"",
"1",
"1",
"true",
"false",
"false",
"dd"
]);
});
[/code]
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 :
[code]
$("#addRow").bind("click", function () {
var oTable = $('.postTable-published').dataTable();
var a = oTable.fnAddData([
"",
"add new row",
"Video",
"",
"1",
"1",
"true",
"false",
"false",
"dd"
]);
});
[/code]
This discussion has been closed.