EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: kissmoon on January 12, 2015, 11:56:06 PM



Title: Use DataGrid, set pagination="true", but pagination is error
Post by: kissmoon on January 12, 2015, 11:56:06 PM
I set pagination="true" ,
the pager is show , but show all data; and change the page,the data is not refresh, but rownumber is refresh.

the code :
Code:
<table id="partdg" class="easyui-datagrid" style="height:500px;" 
            data-options="rownumbers:true,singleSelect:true,url:'/Part/GetAllPart' " sortName="part_code" sortOrder="asc"
            rownumbers="true" pagination="true">
        <thead>
            <tr>
                <th data-options="field:'ck',checkbox:true"></th>
                <th data-options="field:'part_code',width:80,sortable:'true'" >物料编码</th>
                <th data-options="field:'name_en',width:180,sortable:'true'">英文名称</th>
                <th data-options="field:'name_ch',width:180,sortable:'true'">中文名称</th>
                <th data-options="field:'spec_en',width:280,sortable:'true'">英文规格</th>
                <th data-options="field:'spec_ch',width:280,sortable:'true'">中文规格</th>
            </tr>
        </thead>
    </table>


Title: Re: Use DataGrid, set pagination="true", but pagination is error
Post by: kissmoon on January 12, 2015, 11:56:59 PM
screen copy.


Title: Re: Use DataGrid, set pagination="true", but pagination is error
Post by: Opan Mustopah on January 13, 2015, 07:44:22 AM
how you set the pageSize? can you show to us?


Title: Re: Use DataGrid, set pagination="true", but pagination is error
Post by: kissmoon on January 21, 2015, 05:31:03 PM
no set the pageSize , it use default value.