Results 1 to 3 of 3

Thread: combobox multiselect doesn't show selected values

  1. #1
    Sencha User
    Join Date
    Dec 2012
    Location
    Finland
    Posts
    16

    Default combobox multiselect doesn't show selected values

    I have a combobox with a multiselect config. when I click the combo it shows the object as a selected item when the store contains only one object. But if it contains array of objects, when I expand the combo nothing is selected there though the combo.getValue() tells that the array has values. How can I fix this?

    Code:
             {
                                xtype: 'combobox',
                                name: 'idGroup',
                                fieldLabel: 'Type',
                                emptyText: 'Select Type',
                                displayField: 'groupName',
                                multiSelect: true,
                                queryMode: 'local',
                                store: 'Group',
                                editable: false,
                                valueField: 'groupName'
                            },
    And here is the model :

    Code:
    Ext.define('MY.model.Group', {
        extend: 'Ext.data.Model',
        fields: [
            { name: 'idGroup', type: 'int'},
            { name: 'groupName', type: 'string'}
        ],
        idProperty: 'idGroup',
        proxy: {
            type: 'ajax',
            idParam:'idGroup',
    }

  2. #2
    Sencha User
    Join Date
    Dec 2012
    Location
    Finland
    Posts
    16

    Default

    I was setting combo value with wrong data

  3. #3
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    Glad to hear you got it working and thanks for posting a follow-up.

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
  •