contextmenu: function(grid, rowIndex, e) { e.preventDefault(); e.stopEvent(); var panelStore = grid.getStore(); var record = grid.getStore().getAt(rowIndex); var params = '?fileNo=' + this.storeFileNo + '&foreignId=' + this.storeId; var menu01 = new Ext.menu.Item({ iconCls : 'edit', id : 'updateMenu', text : '修改', handler : this.edit.createDelegate(this) }); var menu02 = new Ext.menu.Item({ iconCls : 'delete', id : 'deleteMenu', text : '删除', handler : this.del.createDelegate(this) }); var menu03 = new Ext.menu.Item({ iconCls : 'mod', id : 'modMenu', text : '配置菜单', handler : this.modifyMod.createDelegate(this) }); var selections = this.getSelections(); if (selections.length > 1) { menu01.disable(); } var menuList = [menu01, menu02, menu03]; this.grid_menu = new Ext.menu.Menu({ id : 'mainMenu', items: menuList }); var coords = e.getXY(); grid.getSelectionModel().selectRow(rowIndex); this.grid_menu.showAt([coords[0], coords[1]]); },
还差什么代码,新人一枚,请教一下