listeners: {
'rowcontextmenu': function(e) {
// 行右键菜单
},
'contextmenu': function(e) {
var rowIndex = this.view.findRowIndex(e.getTarget());
if (rowIndex) {
// 如果当前右键点击的是列表行,那么停止事件
e.stopEvent();
} else {
// 右键菜单
}
}
}
转载地址:[url]http://www.iteye.com/topic/454386[/url]
'rowcontextmenu': function(e) {
// 行右键菜单
},
'contextmenu': function(e) {
var rowIndex = this.view.findRowIndex(e.getTarget());
if (rowIndex) {
// 如果当前右键点击的是列表行,那么停止事件
e.stopEvent();
} else {
// 右键菜单
}
}
}
转载地址:[url]http://www.iteye.com/topic/454386[/url]