要配置dataEvents,事件不能直接当做属性来配置 { name: 'flag', width: 20, sortable: true, editable: true, editoptions: { readonly: false, dataEvents: [{ type: 'focus', fn: function (e) { calendar() } }] } };参考:jqGrid通用编辑规则