Results 1 to 4 of 4

Thread: ComboBox inside menu item

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Ext User
    Join Date
    Jun 2009
    Posts
    24
    Vote Rating
    0
      0  

    Question 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
    118
      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
      0  

    Default

    try Ext.menu.CheckItem

  4. #4
    Sencha User
    Join Date
    Jul 2011
    Posts
    35
    Vote Rating
    0
      0  

    Default 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •