Ramco Ramco

Ramco Ramco

  • 419
  • 3.4k
  • 547.9k

Page number in Jquery datatable

Jun 9 2023 4:48 PM

Hi

  I want to display Showing 1 to 87 of 87 entries at the top instead of bottom. 

<asp:GridView ID="grdPlanning" class="table table-bordered" runat="server" onsorting="grdPlanning_Sorting" AllowSorting="True" OnRowDataBound="gr_RowDataBound" OnRowCommand="grdPlanning_RowCommand" AutoGenerateColumns="true">
                                        </asp:GridView>
<script type="text/javascript">
            $(function () {
                $("[id*=grdPlanning]").DataTable(
                    {
                        //bLengthChange: true,
                        //lengthMenu: [[5, 10, -1], [5, 10, "All"]],
                        //bFilter: true,
                        order: [[11, 'asc']],
                        "bDestroy": true
                        //,
                        //bSort: true
                        /*bPaginate: true*/
                    });
            });
        </script>

Thanks


Answers (2)