Adding new row-Using server-side processing
Adding new row-Using server-side processing
alexisjk
Posts: 3Questions: 0Answers: 0
Hi all!
I am using datatable with server side processing,and i need to give the possibility to the user to add a new row to the table.
I know that exists the fnAddData function,but it s not working for me,i read in the documentation that only works for client-side processing.
Do you have suggestion about how can i add a new row to the table?
Thanks in advance!
I am using datatable with server side processing,and i need to give the possibility to the user to add a new row to the table.
I know that exists the fnAddData function,but it s not working for me,i read in the documentation that only works for client-side processing.
Do you have suggestion about how can i add a new row to the table?
Thanks in advance!
This discussion has been closed.
Replies
$.post( "details.php", { item_id: item_id,qty: quantity},
function(data){
$('#table').dataTable().fnAddData(
[
data.field1,
data.field2,
data.field3,
data.field4,
data.field5,
data.field6
]
);