解决方案 »

  1.   

    $("#test").datagrid({
        ....
        pagination:true
    )},var p = $('#test').datagrid('getPager');
    $(p).pagination({
    pageSize: 20,//每页显示的记录条数,默认为
    pageList: [20,30,40,50],//可以设置每页记录条数的列表
    beforePageText: '第',//页数文本框前显示的汉字
    afterPageText: '页    共 {pages} 页',
    displayMsg: '当前显示第 {from} 到 {to} 条记录   共 {total} 条记录'/*,
    onBeforeRefresh:function(){
    $(this).pagination('loading');
    alert('before refresh');
    $(this).pagination('loaded');
    }*/
    });