Java Script for GridView Pager
<script src='<%=Page.ResolveUrl("~/Scripts/tablesorter.js") %>' type="text/javascript"></script>
<script src='<%=Page.ResolveUrl("~/Scripts/jquery.tablesorter.pager.js") %>' type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
var rowsCount = '<%=Grid_Subscription.Rows.Count %>';
var s = document.getElementById('<%= Grid_Subscription.ClientID %>');
$("#" + s.id.toString()).tablesorter({ sortList: [[0, 0]], headers: { 6: { sorter: false }, 7: { sorter: false }, 8: { sorter: false}} }).tablePagination({ optionsForRows: [10, 25, 50, 100, rowsCount] });
});
</script>
No comments:
Post a Comment