1. #1
    Sencha Premium Member
    Join Date
    Nov 2008
    Posts
    27
    Vote Rating
    0
    mastachef is on a distinguished road

      0  

    Default Combobox redering issue with Form Panel

    Combobox redering issue with Form Panel


    Greetings. I have a question to ask about a combo box.

    Combo Box code:
    Code:
    new Ext.form.ComboBox({
                                isEditable: true,
                                fieldLabel: 'Combo',
                                mode: 'local' ,
                                selectOnFocus:true,
                                resizeable:true,
                                listWidth:150,
                                store: [10, 20, 50],
                                value: 1
    })

    I have attached two images to better illustrate my concern. The combo box renders correctly when the form is in 'Edit' mode or not. However, if the form is not in 'Edit' mode and the user clicks on the the combo box, the drop down list appears. Is this a bug or are my configurations messed up? Thank you
    Attached Images

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,632
    Vote Rating
    817
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    What do you do when you are not in edit mode?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha Premium Member
    Join Date
    Nov 2008
    Posts
    27
    Vote Rating
    0
    mastachef is on a distinguished road

      0  

    Default


    I do not understand the question. When I am not in 'Edit' mode, I do nothing. I want the combobox field to be rendered as a textfield when I am not in 'Edit' (which it currently does). When I added the 'readOnly: true' config, it corrected the weird issue. But when I when into 'Edit' mode, I am not able to get the drop down options to display.

Thread Participants: 1

Tags for this Thread