当前位置:网站首页>jqgrid全选取消单行点击取消事件
jqgrid全选取消单行点击取消事件
2022-07-25 14:14:00 【码上致富】
一、问题描述
这里用了jqgrid表格,开启了全选事件,操作时,点击checkbox或某一行时,该行都会被勾选,,如果不小心,点击某一行,会导致前面所有勾选的行,会被取消掉,出现这种情况就是行点击事件导致的。
二、解决方法
在jqgrid里添加如下方法即可解决
beforeSelectRow: function (rowid, e) {
var $myGrid = $(this),
i = $.jgrid.getCellIndex($(e.target).closest('td')[0]),
cm = $myGrid.jqGrid('getGridParam', 'colModel');
return (cm[i].name === 'cb');
}
边栏推荐
- What you must know about data engineering in mlops
- idea正则表达式替换(idea正则搜索)
- CTS test introduction (how to introduce interface test in interview)
- Xintang nuc980 set DHCP or static IP
- Digital Twins - cognition
- 手把手教你申请SSL证书
- Practice of online problem feedback module (13): realize multi parameter paging query list
- 如何设计一个高并发系统?
- Use of Bluetooth function of vs wireless vibrating wire acquisition instrument
- Oka pass rights and interests analysis is the best choice to participate in okaleido ecological construction
猜你喜欢

如何设计一个高并发系统?

元器件采购系统的主要功能,数字化采购助力元器件企业飞速发展

PHP website design ideas

~5 new solution of CCF 2021-12-2 sequence query

应急科普|收好这份暑期安全指南,让孩子安全过暑假!

Comprehensive sorting and summary of maskrcnn code structure process of target detection and segmentation

Hyperautomation for the enhancement of automation in industries

Oka pass rights and interests analysis is the best choice to participate in okaleido ecological construction

Amd epyc 9664 flagship specification exposure: 96 core 192 threads 480MB cache 3.8ghz frequency

Interpretation of featdepth self-monitoring model for monocular depth estimation (Part I) -- paper understanding and core source code analysis
随机推荐
飞沃科技IPO过会:年营收11.3亿 湖南文旅与沅澧投资是股东
Amd epyc 9664 flagship specification exposure: 96 core 192 threads 480MB cache 3.8ghz frequency
pt100测温电路图(ad590典型的测温电路)
RuntimeError: CUDA out of memory(已解决)[通俗易懂]
Problems and extensions of the monocular depth estimation model featdepth in practice
pytorch训练代码编写技巧、DataLoader、爱因斯坦标示
Advantages of wireless relay acquisition instrument and wireless network for engineering monitoring
Mysql表的操作
Realize a family security and environmental monitoring system (I)
Mlops column introduction
为什么中建、中铁都需要这本证书?究竟是什么原因?
Use of Bluetooth function of vs wireless vibrating wire acquisition instrument
From fish eye to look around to multi task King bombing -- a review of Valeo's classic articles on visual depth estimation (from fisheyedistancenet to omnidet) (Part 2)
~4.2 CCF 2021-12-1 sequence query
Detailed explanation of Telnet remote login AAA mode [Huawei ENSP]
Gartner 2022 top technology trend: Super automation
Gateway 网关报错 SERVICE_UNAVAILABLE
Doris学习笔记之与其他系统集成
sqli-labs Basic Challenges Less11-22
Keys and scan based on redis delete keys with TTL -1