Adding new row-Using server-side processing

Adding new row-Using server-side processing

alexisjkalexisjk Posts: 3Questions: 0Answers: 0
edited March 2012 in DataTables 1.9
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!

Replies

  • MercJonesMercJones Posts: 4Questions: 0Answers: 0
    Can you try something like:

    $.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
    ]
    );
This discussion has been closed.