How i can create context menu for extjs grid

前端 未结 5 443
我寻月下人不归
我寻月下人不归 2021-02-04 03:08

I can create context menu for tree and attach to \'contextmenu\' event. Code:

contextMenu = new Ext.menu.Menu({
  items: [{
    text: \'Edit\',
    iconCls: \'ed         


        
5条回答
  •  北海茫月
    2021-02-04 03:23

    For extjs4, add this in your grid:

    listeners: {
      itemclick: function(view, record, item, index, e, options){
        menuContext.showAt(e.xy);
      }
    }
    

    With the same menu context as Alan provided above.

提交回复
热议问题