EasyUI Forum

General Category => EasyUI for Vue => Topic started by: fengdie on August 23, 2018, 08:34:07 PM



Title: about datagrid component pagination question
Post by: fengdie on August 23, 2018, 08:34:07 PM
1、
how to set datagrid parameter like 'easyui for jquery' pagination ajax request.(怎么设置才能像jquery版那样,ajax分页)
The server returned 10 data, set a total of 1000 but only 1 page at the front end(服务器返回了10条数据,设置了total为1000.但前端只有1页)

2、how to set datagrid pagination like https://www.jeasyui.com/demo-vue/demo.php?cname=pagination&pitem=layout (https://www.jeasyui.com/demo-vue/demo.php?cname=pagination&pitem=layout)



Title: Re: about datagrid component pagination question
Post by: stworthy on August 24, 2018, 02:35:44 AM
Please set the 'pageLayout' property for the datagrid.
Code:
:pageLayout="['list','sep','first','prev','next','last','sep','refresh','info']"