false
从 RowEditingbeforeedit
事件返回。
listeners: {
beforeedit: function(editor, context){
if(comboBox.getValue() === /* whatever conditions you have */){
return false;
}
}
}
您也可以设置context.cancel = true
来实现相同的效果,但我真的看不出它的意义,因为false
从beforexyz
事件返回是 Ext JS 4 库中的标准习惯用法。