jQuery DataTable not displaying Show entries, Search and does not sort until the page is refreshed

jQuery DataTable not displaying Show entries, Search and does not sort until the page is refreshed

UsmanBasharmalUsmanBasharmal Posts: 14Questions: 3Answers: 0
edited March 2020 in Free community support

jQuery DataTable not displaying Show entries, Search and does not sort until I refresh the page after I refresh the page it works.
Thank in advance

<div class="row">
                                    <div class="col-sm-12">
                                        <table
                                            id="datatable"
                                            class="table table-striped table-bordered dataTable no-footer"
                                            role="grid"
                                            aria-describedby="datatable_info"
                                        >
                                            <thead>
                                                <tr role="row">
                                                    <th
                                                        class="sorting_asc"
                                                        tabindex="0"
                                                        aria-controls="datatable"
                                                        rowspan="1"
                                                        colspan="1"
                                                        aria-sort="ascending"
                                                        aria-label="نام: activate to sort column descending"
                                                        style="width: 140px;"
                                                    >
                                                        نام
                                                    </th>
                                                    <th
                                                        class="sorting"
                                                        tabindex="0"
                                                        aria-controls="datatable"
                                                        rowspan="1"
                                                        colspan="1"
                                                        aria-label="جایگاه: activate to sort column ascending"
                                                        style="width: 234px;"
                                                    >
                                                        جایگاه
                                                    </th>                                                    
                                                </tr>
                                            </thead>
    
                                            <tbody>
                                                <tr role="row" class="odd">
                                                    <td class="sorting_1">
                                                        Airi Satou
                                                    </td>
                                                    <td>Accountant</td>                                                    
                                                </tr>
                                                <td class="sorting_1">
                                                        Airi Satou
                                                    </td>
                                                    <td>Accountant</td>                                                    
                                                </tr>                                    
                                            </tbody>
                                        </table>
                                    </div>
                                </div>

Edited by Colin - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.

Replies

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

This discussion has been closed.