EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Aod47 on May 27, 2018, 05:40:26 PM



Title: How to initial datagrid pager with links button instead manual?
Post by: Aod47 on May 27, 2018, 05:40:26 PM
I used code to define datagrid pager with link button

Code:
<table  class="easyui-datagrid" 
data-options="
url: 'data.json',
method: 'post',
pagination: true,
        onLoadSuccess:function(data){
    var pager = $(this).datagrid('getPager');
                pager.pagination({
                    layout: ['list', 'sep', 'first', 'prev', 'sep', 'links', 'sep', 'next', 'last', 'sep', 'refresh'],
                    showPageList: false
                });    
}
">

Although, datagrid show links button but has delay, and chrome alwasy throw error

Quote
Uncaught TypeError: Cannot read property 'panel' of undefined
    at Object.getPager (jquery.easyui.min.js:11216)

Do you have a way to initial datagrid pager with links button and any configuration.

Thank you for advice.


Title: Re: How to initial datagrid pager with links button instead manual?
Post by: Aod47 on May 27, 2018, 10:50:08 PM
OK., I solved it. I modified js script.