How to add row when i am using php based server processsing

How to add row when i am using php based server processsing

raihan1780raihan1780 Posts: 1Questions: 0Answers: 0
edited September 2011 in General
HI,

I am new one with data tables. I have used data tables with server side processing. But now i want to add row in data tables. Can you tell me how i have to do it . It will be very nice if i have some example

THanks
Raihan

Replies

  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    API function fnAddData. pass an array as the first arg (one value for every column, including hidden columns)

    see http://datatables.net/examples/api/add_row.html
    see http://datatables.net/api#fnAddData

    [code]
    oTable = $('#example').dataTable();

    oTable.fnAddData([0,1,2,3,4,5,6]);
    [/code]

    optionally add 2nd parameter (boolean) to indicate triggering a redraw of the table (I think this will re-sort and re-filter).
This discussion has been closed.