Results 1 to 2 of 2

Thread: ComboBox and assertValue

    You found a bug! We've classified it as EXTJS-5565 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Ext JS Premium Member
    Join Date
    May 2009
    Vote Rating

    Default ComboBox and assertValue

    Hello there,

    Having forceSelection: true & multiSelect: false on a combo, when there is more than one record with the same display field value, the assertValue function always re-select the first one, no matter which record (with the same display field value) you select.

    The problem is that assertValue is using 'findRecordByDisplay'
    rec = me.findRecordByDisplay(value);
    if (rec) {
    the change event has the correct newValue, the problem is that the assertValue modify it to another value (the first one with that display value)

    I know its not very common to have more than one record with the same display value (obviously the records have different id values)... In my case, I hit this problem with people, it's possible that more than one person is named the same, and they represent different records.... (in my system they are easily differentiable because I'm using a custom innerTpl that not only shows the person name, but also its email, if it's an employee or a contact and it's avatar)

    Currently, I'm overriding the combobox to avoid the, and it works OK for me... but I guess it would be better if I didn't have to include that override...

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    Not common but a possibility. Thanks for the report.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:

Posting Permissions

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