First time using DataTables Having issues adding table data

First time using DataTables Having issues adding table data

KaidenRogersKaidenRogers Posts: 2Questions: 1Answers: 0

I'm using an editable DataTable from an Admin Template and when I add Table data or table headers I loose pretty much all the functionality of the table (Search, Edit, Sort, Pagination, etc)

                            <tr>
                                    <th></th>
                                    <th></th>
                                    <th></th>
                                    <th></th>

                                    </tr>
                            </thead>
                            <tbody>

                            <tr class="gradeU">
                                    <td></td>
                                    <td></td>
                                    <td></td>
                                    <td class="actions">
                                        <a href="#" class="hidden on-editing save-row"><i class="fa fa-save"></i></a>
                                        <a href="#" class="hidden on-editing cancel-row"><i class="fa fa-times"></i></a>
                                        <a href="#" class="on-default edit-row"><i class="fa fa-pencil"></i></a>
                                        <a href="#" class="on-default remove-row"><i class="fa fa-trash-o"></i></a>
                                    </td>
                                </tr>

This works fine

However, this doesn't:

                            <tr>
                                    <th></th>
                                    <th></th>
                                    <th></th>
                                    <th></th>
                                    <th></th><!-- extra line -->

                                    </tr>
                            </thead>
                            <tbody>
                            <tr class="gradeU">
                                    <td></td>
                                    <td></td>
                                    <td></td>
                                    <td></td> <!-- extra line -->
                                    <td class="actions">
                                        <a href="#" class="hidden on-editing save-row"><i class="fa fa-save"></i></a>
                                        <a href="#" class="hidden on-editing cancel-row"><i class="fa fa-times"></i></a>
                                        <a href="#" class="on-default edit-row"><i class="fa fa-pencil"></i></a>
                                        <a href="#" class="on-default remove-row"><i class="fa fa-trash-o"></i></a>
                                    </td>
                                </tr>

I've been at this problem for hours and I can't seem to figure it out.

Answers

This discussion has been closed.