Results 1 to 3 of 3

Thread: Combobox setValue Array issue

  1. #1
    Sencha User
    Join Date
    Jun 2016
    Posts
    5
    Answers
    1

    Default Answered: Combobox setValue Array issue

    I have a multiselect combobox with a valueField of UserId and a displayField of UserName. If I use setValue() on the combobox with an array of values matching UserId of some of the items, the value displayed on the combobox is correctly set to a comma delimited list of the UserName fields from the matching items. The items don't actually get selected, though, and if I open the combobox, the previously selected single item is still selected.

    Is this a bug, or should I be passing something different into setValue() of the combobox, or what?

  2. Actually, after further investigation (and trying to reproduce this in a simple example) this appears to be due to a plugin I'm using.

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

    Default

    I'm not sure I understand. You should be passing an array of values to the setValue() method. If that isn't working, can you please post a test case showing what you mean?
    https://fiddle.sencha.com/#home

  4. #3
    Sencha User
    Join Date
    Jun 2016
    Posts
    5
    Answers
    1

    Default

    Actually, after further investigation (and trying to reproduce this in a simple example) this appears to be due to a plugin I'm using.

Similar Threads

  1. Replies: 4
    Last Post: 17 Jun 2016, 7:01 AM
  2. [FIXED] Combobox setValue Array Bug
    By jonw in forum Ext JS 6.x Bugs
    Replies: 2
    Last Post: 9 Feb 2016, 12:26 PM
  3. [FIXED] ComboBox issue setValue to hidden field
    By fother in forum Ext GWT: Bugs (1.x)
    Replies: 23
    Last Post: 24 Feb 2010, 3:08 AM
  4. Replies: 0
    Last Post: 26 Dec 2009, 6:14 PM

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
  •