Results 1 to 3 of 3

Thread: Combobox redering issue with Form Panel

  1. #1
    Sencha Premium Member
    Join Date
    Nov 2008
    Posts
    28
    Vote Rating
    0
      0  

    Default 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 Attached Images

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Vote Rating
    1272
      0  

    Default

    What do you do when you are not in edit mode?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha Premium Member
    Join Date
    Nov 2008
    Posts
    28
    Vote Rating
    0
      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.

Tags for this Thread

Posting Permissions

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