惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

腾讯CDC
Schneier on Security
Schneier on Security
B
Blog RSS Feed
aimingoo的专栏
aimingoo的专栏
P
Proofpoint News Feed
A
About on SuperTechFans
Recorded Future
Recorded Future
Recent Announcements
Recent Announcements
Microsoft Security Blog
Microsoft Security Blog
L
LangChain Blog
Hugging Face - Blog
Hugging Face - Blog
The GitHub Blog
The GitHub Blog
Google DeepMind News
Google DeepMind News
T
Tailwind CSS Blog
Vercel News
Vercel News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
MyScale Blog
MyScale Blog
V2EX - 技术
V2EX - 技术
N
Netflix TechBlog - Medium
F
Fortinet All Blogs
V
Visual Studio Blog
Martin Fowler
Martin Fowler
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
博客园 - Franky
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
The Exploit Database - CXSecurity.com
F
Full Disclosure
Scott Helme
Scott Helme
H
Heimdal Security Blog
博客园 - 叶小钗
Google DeepMind News
Google DeepMind News
Cyberwarzone
Cyberwarzone
Application and Cybersecurity Blog
Application and Cybersecurity Blog
V
Vulnerabilities – Threatpost
Blog — PlanetScale
Blog — PlanetScale
Security Latest
Security Latest
WordPress大学
WordPress大学
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
Troy Hunt's Blog
S
SegmentFault 最新的问题
Forbes - Security
Forbes - Security
Jina AI
Jina AI
S
Securelist
小众软件
小众软件
Simon Willison's Weblog
Simon Willison's Weblog
J
Java Code Geeks
AWS News Blog
AWS News Blog
N
News and Events Feed by Topic
博客园 - 三生石上(FineUI控件)
量子位

博客园 - 愛如風過

MODRD 指令 读取地址是哪儿来的 如何在不同编程语言中获取现在的Unix时间戳(Unix timestamp)? HttpRequest Get Post,WebClient Get GetWindowThreadProcessId用法(转) EASYUI DATAGRID 多列复选框CheckBox Android Service 数据库主键设计之思考[转] Silverlight 使用用户控件 [转] - 愛如風過 技巧:在Silverlight 2应用程序中切换用户控件[转] Jquery 实现“最近浏览过的商品”的功能 - 愛如風過 - 博客园 Jquery获取设置radio select checkbox 文本框 [转] - 愛如風過 泛型 Vista 中,使用VS 2005调试程序没有权限的问题? Team Foundation 和 Visual SourceSafe 之间的区别 MSF资源 网页左右浮动广告(包括ASP.NET后台管理) why? 在水晶报表中实现任意选择指定字段显示资料 .在Datagrid中修改数据,当点击编辑键时,数据出现在文本框中,怎么控制文本框的大小 ?(转)
easyui datagrid 的分页刷新按钮
愛如風過 · 2015-07-22 · via 博客园 - 愛如風過

datagrid  刷新bug:

情形:

当用户A,B  同时操作 datagrid时(记录1,记录2、记录3)。如果A如果删除记录1,  B此时已选中了记录1 ,记录2 , 这时B点击分页中的刷新按钮后,记录1不可见。但是getchecked  会发现选中的是2条记录(记录1 记录2 ) ,而不是一条记录2。

一种办法:

再点击刷新按钮的时候。清除所有选中的行。

easyui ui 1.4.2

jquery.easyui.min.js

_5d4.pagination({
total: (opts.pageNumber * opts.pageSize), pageNumber: opts.pageNumber, pageSize: opts.pageSize, pageList: opts.pageList, onRefresh: function () { $(_5cd).datagrid("clearSelections").datagrid("clearChecked"); }, onSelectPage: function (_5d5, _5d6) {
opts.pageNumber = _5d5 || 1;
opts.pageSize = _5d6;
_5d4.pagination("refresh", { pageNumber: _5d5, pageSize: _5d6 });
_611(_5cd);
}
});

  _5d4.pagination({
total: (opts.pageNumber * opts.pageSize), pageNumber: opts.pageNumber, pageSize: opts.pageSize, pageList: opts.pageList,onRefresh: function () { $(_5cd).datagrid("clearSelections").datagrid("clearChecked"); }, onRefresh: function () { $(_5cd).datagrid("clearSelections").datagrid("clearChecked"); }, onSelectPage: function (_5d5, _5d6) {
opts.pageNumber = _5d5 || 1;
opts.pageSize = _5d6;
_5d4.pagination("refresh", { pageNumber: _5d5, pageSize: _5d6 });
_611(_5cd);
}
});