当前位置:网站首页>EasyUI DataGrid paging events

EasyUI DataGrid paging events

2020-12-08 13:55:26 Let me love you

var pg = $("#tt").datagrid("getPager");
if(pg){
    $(pg).pagination({
        onBeforeRefresh:function(){
            alert('before refresh');
                },
        onRefresh:function(pageNumber,pageSize){
            alert(pageNumber);
            alert(pageSize);
        },
        onChangePageSize:function(){
            alert('pagesize changed');
        },
        onSelectPage:function(pageNumber,pageSize){
            alert(pageNumber);
            alert(pageSize);
        }
    });
}

It's triggering onChangePageSize When an event is , Will trigger at the same time onSelectPage event .onSelectPage The event will pass 2 Parameters pageNumber、pageSize. pageSize It's page size ,pageNumber For the next page number displayed , Default starts from page 1 .

版权声明
本文为[Let me love you]所创,转载请带上原文链接,感谢
https://chowdera.com/2020/12/20201208135508953o.html