EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
July 19, 2025, 07:08:58 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
General Discussion
>
pagination 的 total 属性, 默认 1 不合理, 应该为0
Pages: [
1
]
« previous
next »
Print
Author
Topic: pagination 的 total 属性, 默认 1 不合理, 应该为0 (Read 8387 times)
iamjxc
Jr. Member
Posts: 80
pagination 的 total 属性, 默认 1 不合理, 应该为0
«
on:
June 10, 2014, 08:39:52 PM »
新建的 datagrid, 没有加载数据时, pagination 显示为: 显示1到1,共1记录
这是不合理的, 没数据怎么来的1呢?
建议把默认值改成 0.
另外, 如何区分 datagrid 新建时没有检索数据和检索不到数据的情况.
这2种情况都是 total 为0, 建议专门增加一个检索不到数据的提示属性
dg.datagrid('loadData', data); // 如果此时 total 为0, 则显示: 没有检索到数据
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...