Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

一些问题反馈 #178

Open
xy255g opened this issue Jul 12, 2020 · 1 comment
Open

一些问题反馈 #178

xy255g opened this issue Jul 12, 2020 · 1 comment
Labels

Comments

@xy255g
Copy link

xy255g commented Jul 12, 2020

1、我原来用的1.9.1.用了数据表格2.
刚从官网直接点下载下来的时zui-1.9.2-dist.zip
加载以后数据表格2默认是英文的。
langs包里好像也没中文。不知道怎么改成中文。

2、数据表格2的问题
我用的远程数据源,每次返回一个分页那种。
修改某行数据以后,也是ajax提交远程保存到数据库。
但是本地只能用window.location.reload();来刷新页面。这样刷新会自动返回第一页。不太好用。
1.9.1的时候调用$('#datagridBox').data('zui.datagrid').render();没任何效果。不会刷新本页。
升级1.9.2后,render()好像页面有反应,但是只是看到表格自适应了一下尺寸。数据并没变,也没有发送新的ajax请求来获取新数据。

@xy255g
Copy link
Author

xy255g commented Jul 12, 2020

3远程数据源,数据表格2.
初始化设置的页码page:2和pageSizeOptions都没用,第一次加载在F12里看ajax提交的的page还是1,但是点分页按钮能正常切换分页。
配置里的recPerPage: 5没有问题,后台接受的是5。
是我哪里设置错误了么?
设置代码:
,states: { pager: { page: 2, recPerPage: 5, sortBy:'id',order:'desc', pageSizeOptions:[10,15, 20, 30, 50, 100] ,lang:'zh_cn' } }

@catouse catouse added the bug label Jul 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants