1. #1
    Ext User
    Join Date
    Jun 2009
    Posts
    24
    Vote Rating
    0
    anystrike is on a distinguished road

      0  

    Question ComboBox inside menu item

    ComboBox inside menu item


    Hy Guys
    How can insert a combobox inside a menu item?
    anyone can help me?

    thanks

    this code dosen't work...

    Code:
    menu: {ignoreParentClicks: true,
                                    items:[{
                                text: '',
                                handler: function(obj, e){
                                
                                }
                            },{
                            xtype:"combo",
                            width:100,
                                listWidth:100,
                                forceSelection: true,
                                store: TypesStore,
                                editable:false,
                                valueField: 'value',
                                displayField: 'name',
                                hideLabel:true,
                                allowBlank:false,
                                typeAhead: true,
                                mode: 'local',
                                triggerAction: 'all'
                        }]}

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    97
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    You need to select a different parent for the combobox list, e.g.
    Code:
    {
      xtype: 'combo',
      ...
      getListParent: function() {
        return this.el.up('.x-menu');
      }
    }
    (which unfortunately doesn't work on Ext 2, because this feature request was only implemented for Ext 3)

  3. #3
    Ext User
    Join Date
    Jul 2008
    Location
    China
    Posts
    74
    Vote Rating
    0
    joehebe is on a distinguished road

      0  

    Default


    try Ext.menu.CheckItem

  4. #4
    Sencha User
    Join Date
    Jul 2011
    Posts
    32
    Vote Rating
    0
    mimmo.rossi73 is on a distinguished road

      0  

    Default Same Problem

    Same Problem


    I have the same problem when try to insert a trigger field in a menu, i don't understand if in this version i can put it after modify a extjs with some fix.
    Otherwise, there is a possibility to show a panel below a button item?
    Thanks in advance