Results 1 to 5 of 5

Thread: Where's displayField property in combo box?

  1. #1
    Sencha Premium Member
    Join Date
    Mar 2010
    Posts
    20
    Vote Rating
    0
      0  

    Default Where's displayField property in combo box?

    I can't find the displayField property in the combo box property window, also fieldLabel isn't there either.

  2. #2
    Sencha Premium Member
    Join Date
    Mar 2010
    Posts
    20
    Vote Rating
    0
      0  

    Default

    Also how can I add a templet to the combo box?

  3. #3
    Sencha Premium User
    Join Date
    Jan 2009
    Posts
    449
    Vote Rating
    243
      0  

    Default

    I'm not sure about the template or the displayField. I can see the fieldLabel, though. It's a property on the layout, so the combo has to be a direct child of some container with layout of 'form'.

  4. #4
    Sencha User
    Join Date
    Mar 2008
    Posts
    6
    Vote Rating
    0
      0  

    Default How do I set display field for combo box

    I also would like to know how you set the display and value fields for a combo box

  5. #5
    Sencha Premium Member
    Join Date
    Mar 2010
    Posts
    20
    Vote Rating
    0
      0  

    Default

    I copied the following code from the docs.

    Code:
    var combo = new Ext.form.ComboBox({
        typeAhead: true,
        triggerAction: 'all',
        lazyRender:true,
        mode: 'local',
        store: new Ext.data.ArrayStore({
            id: 0,
            fields: [
                'myId',
                'displayText'
            ],
            data: [[1, 'item1'], [2, 'item2']]
        }),
        valueField: 'myId',
        displayField: 'displayText'
    });
    There are 7 configurations used by the example, and only 3 can be found in the config window! I've lost count on how many of them from the api that aren't in the config window. How do we suppose to learn and use the designer if it can't even support the example from docs?

Posting Permissions

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