jQWidgets Forums

jQuery UI Widgets Forums Lists ComboBox combobox with autocomplete as true

This topic contains 3 replies, has 2 voices, and was last updated by  Peter Stoev 11 years ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • combobox with autocomplete as true #56091

    spiral75
    Participant

    Hi,
    When we open combobox with autocomplete as true and searchMode as startswithignorecase, then on chrome/ie browser, when we first select some non empty value, on change is fired. Then when we select first value which is empty , then also onchange is fired. After that when we select a value through by typing ‘A’ and select the first value which occurs, onchange is not getting fired..

    below is the code.. will post the jsfiddle link soon..

    var source = [
    “”,
    “Affogato”,
    “Americano”,
    “Bicerin”,
    “Breve”,
    “Café Bombón”,
    “Café au lait”,
    “Caffé Corretto”,
    “Café Crema”,
    “Caffé Latte”
    ];
    // Create a jqxComboBox
    $(“#jqxComboBox”).jqxComboBox({
    source: source,
    theme: ‘energyblue’,
    width: ‘200px’,
    height: ’25px’,
    searchMode:’startswith’,
    autoComplete:true

    });

    $(‘#jqxComboBox’).on(‘change’, function (event) {
    alert(‘onChange’);
    var args = event.args;
    if (args) {
    var index = args.index;
    var item = args.item;
    // get item’s label and value.
    var label = item.label;
    var value = item.value;
    alert(“label: ” + label);
    }

    });

    combobox with autocomplete as true #56094

    spiral75
    Participant

    Hi,
    Below is the jsfiddle link, the issue is coming on chrome browser..
    http://jsfiddle.net/spiral75/6H8ae/10/

    combobox with autocomplete as true #56119

    spiral75
    Participant

    Can anyone help me on above..

    combobox with autocomplete as true #56128

    Peter Stoev
    Keymaster
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.