Answers for "show 100 results in datatable jquery"

2

jquery for table Show entries

$(document).ready(function() {
    $('#example').DataTable( {
        "lengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]]
    } );
} );
Posted by: Guest on April-13-2020
0

how to count the rows of gridview in asp.net using jquery

<script type="text/javascript">
    $(function () {
        $("[id*=btnGetCount]").click(function () {
            var totalRowCount = $("[id*=GridView1] tr").length;
            var rowCount = $("[id*=GridView1] td").closest("tr").length;
            var message = "Total Row Count: " + totalRowCount;
            message += "\nRow Count: " + rowCount;
            alert(message);
            return false;
        });
    });
</script>
Posted by: Guest on May-12-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language