Cannot add a new row
Cannot add a new row
Hi,
I have a problem with adding a new row to my table.
`// datatable columns
[
{ data: "guid", visible: false },
//-------------------------------------------------------------------------
{
width: "20px",
render: function (data, type, full, meta) {
return '<input class="selector" type="checkbox" />';
}
},
//-------------------------------------------------------------------------
{
data: "node_name", width: "400px",
render: function (data, type, row) {
if (type == "display") {
return data;
}
else if (type == "html") {
return '<input type="text" value="' + data + '" title="' + data + '"/>';
}
}
}
]
//on add event
var rowNode = structureTable.row.add(
{
"guid": -1,
"node_name": ""
}
).draw().node();`
Do you have any suggestions?