No Data Available In Table

No Data Available In Table

kainoskainos Posts: 1Questions: 0Answers: 0
edited November 2013 in DataTables 1.9
I am a new to datatables. It appears datatables does not see my table.

The table in my jsp file is



Client
First Name
Last Name
Sex
Address
Phone
Email
Action





client-list-tbody is generated via javascript and added to via $('#client-list-tbody').html(htm);

I know there must be a simple way for datatables to see my table.
The table does show up but it says 0 of 0 showing.

Any help would be appreciated.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    See http://datatables.net/faqs#append . You need to use the API if you want to add rows to an existing DataTables.

    Alternatively, just set the HTML before you initialise the DataTable.

    Allan
This discussion has been closed.