Results 1 to 3 of 3

Thread: Editable, multiselect combobox.

  1. #1
    Sencha Premium User VDP's Avatar
    Join Date
    Feb 2012
    Location
    Niel, Belgium
    Posts
    101
    Answers
    4

    Default Editable, multiselect combobox.

    I have created a custom component extended from combobox. It has a couple of requirements:
    • is multiSelect
    • needs checkboxes
    • You need to be able to type text and use the checkboxes
    • Needs filtering after the last ','
    • output should be the valueField, not the displayField or just the rawValue
    • when focus is lost (assert) remove duplicates (this one is an easy to implement extra)
    As you can see in this fiddle I got quit near. But when I start typing 'Alabama, Alaska', Alabama will automatically select (like it should) after the ',' the filter is cleared and when I start typing Alaska, until Ala, both Alaska and Alabama will be in the list. When I've typed 'Alabama, Alas' the it filters on Alas, so only Alaska will remain. But the issue is the selection got lost and the field got cleared. That's not supposed to happen.

    Also: The empty values aren't a big problem (its a deselect and reselect somewhere) but I would like to get rid of the 'null'.

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379
    Answers
    3997

    Default

    Quote Originally Posted by VDP View Post
    As you can see in this fiddle I got quit near. But when I start typing the second word and the first word got filtered away it's cleared.

    try typing 'Alabama, Ala' that works type an 's' and it's cleared.
    I'm not sure I understand this
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  3. #3
    Sencha Premium User VDP's Avatar
    Join Date
    Feb 2012
    Location
    Niel, Belgium
    Posts
    101
    Answers
    4

    Default

    I've updated the question

Posting Permissions

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