EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
September 14, 2025, 10:22:34 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
>
EasyUI for jQuery
>
DataGrid去除单击行选择事件,代码不兼容
Pages: [
1
]
« previous
next »
Print
Author
Topic: DataGrid去除单击行选择事件,代码不兼容 (Read 23726 times)
jxyxhz
Newbie
Posts: 9
DataGrid去除单击行选择事件,代码不兼容
«
on:
May 03, 2012, 10:36:31 PM »
onLoadSuccess: function () {
function bindRowsEvent() {
var panel = $('#TList').datagrid('getPanel');
var rows = panel.find('tr[datagrid-row-index]');
var rows = panel.find('div.datagrid-cell-check input[type!=checkbox]');
rows.unbind('click').bind('click', function (e) {
return false;
});
rows.find('div.datagrid-cell-check input[type=checkbox]').unbind().bind('click', function (e) {
var index = $(this).parent().parent().parent().attr('datagrid-row-index');
if ($(this).attr('checked')) {
$('#TList').datagrid('selectRow', index);
} else {
$('#TList').datagrid('unselectRow', index);
}
e.stopPropagation();
});
}
setTimeout(function () {
bindRowsEvent();
}, 10);
},
这段代码在IE6和IE9下好像是兼容的,但是在IE7、8和Firefox下面不行。请技术人员给予支持。
Logged
jxyxhz
Newbie
Posts: 9
Re: DataGrid去除单击行选择事件,代码不兼容
«
Reply #1 on:
May 06, 2012, 08:01:32 PM »
解决了。
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...