. Net+easyui Series--pagination pagination

Source: Internet
Author: User

create pagination using JS

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

JS Code:

           varTTA = 200;//Define Total$ (' #pp '). Pagination ({Total:tta, pageSize:10,//number of rows displayed per pageOnselectpage:function(PageNumber, PageSize) {//change the Trigger event after page number$( This). Pagination (' Loading '); Alert (' pagenumber: ' + pagenumber + ', pageSize: ' +pageSize); $( This). Pagination (' Loaded '); }, buttons: [{//Add New buttonIconcls: ' Icon-add ', Handler:function() {alert (' Add ')//Click the event after the new button                    }                }, ‘-‘, {//Add Save buttonIconcls: ' Icon-save ', Handler:function() {alert (' Save ')//Click the event after the Save button                    }                }]            });

:

Common methods:

$ (' #pp '). Pagination (' refresh ');    // Refresh page Bar information $ (' #pp '). Pagination (' Refresh ', {    //  change options, and Refresh page bar information    total:114,    6 }); $ (' #pp '). Pagination (' select ');    // Refresh the current page $ (' #pp '). Pagination (' select ', 2);    // Select Second Page

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

. Net+easyui Series--pagination pagination

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.