. Net + easyui series -- Pagination paging, easyui -- pagination

Source: Internet
Author: User

. Net + easyui series -- Pagination paging, easyui -- pagination

Create a page with JS

 

<div id="pat" style="background:#efefef;border:1px solid #ccc;"></div>

JS Code:

Var tta = 200; // The total number of definitions $ ('# pp '). pagination ({total: tta, pageSize: 10, // The number of lines displayed per page onSelectPage: function (pageNumber, pageSize) {// trigger event after page number change $ (this ). pagination ('loading'); alert ('pagenumber: '+ pageNumber +', pageSize: '+ pageSize); $ (this ). pagination ('loaded') ;}, buttons: [{// add button iconCls: 'icon-add', handler: function () {alert ('add ') // click the event after the Add button }}, '-', {// Add the save button iconCls: 'icon-save', handler: function () {alert ('save') // event after clicking the save button}]});

:

Common Methods:

$ ('# Pp '). pagination ('refresh'); // refresh the page information $ ('# PP '). pagination ('refresh', {// modify the option, and refresh the page column information total: 114, pageNumber: 6}); $ ('# pp '). pagination ('select'); // refresh the current page $ ('# pp '). pagination ('select', 2); // select the second page

It is useful to refresh the current page and select the page

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.