jQWidgets Forums

jQuery UI Widgets Forums Lists ComboBox Problem with Combobox autocomplete and searchMode

This topic contains 8 replies, has 3 voices, and was last updated by  Peter Stoev 12 years, 7 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author

  • gokul
    Participant

    Hai There,

    Currently I got some different output with/without using autocomplete:true and searchMode: ‘containsignorecase’. please see the�
    below code.

    var localdata = [
    "bank_code": "UOB-SGD", "bank_desc": "United Overseas Bank-SGD" },
    "bank_code": "UOB-USD", "bank_desc": "United Overseas Bank-USD" },
    "bank_code": "MBB-SGD", "bank_desc": "Maybank-SGD" },
    "bank_code": "DBS-SGD", "bank_desc": "DBS Bank Ltd-SGD" }
    ];
    var source =
    {
    datatype: "json",
    datafields: [
    { name: 'bank_code' },
    { name: 'bank_desc' }
    ],
    id: 'id',
    localdata: localdata,
    };
    var dataAdapter = new $.jqx.dataAdapter(source);
    $("#ddlBankName").jqxComboBox({ 
        width: 300, 
        height: 25, 
        theme: theme,
        source: dataAdapter, 
        displayMember: "bank_desc"
        valueMember: "bank_code",
        autocomplete: true,
        searchMode: 'containsignorecase'
    });
    $("#ddlBankName").bind('select', function (event) {
        $("#selectionlog").children().remove();
    if (event.args) {
    var item = event.args.item;
    if (item) {
    var valueelement = $("<div></div>");
    valueelement.html("Value: " + item.value);
    var labelelement = $("<div></div>");
    labelelement.html(item.label);
    $("#selectionlog").append(labelelement);
    }
    }
    });

    Now come to my scenario,

    1. Combobox with autocomplete = ture and searchMode = ‘containsignorecase’.

    Once I start typing the word May ( bank_desc for Maybank) in the combobox list display only the ‘Maybank-SGD’ and selectionlog div shows as ‘United Overseas Bank-SGD’.�
    The main confusiton is after I selected the ‘Maybank-SGD’ from the combobox list then also the selectionlog div shows as ‘United Overseas Bank-SGD’. 

    2. I tried combobox without autocomplete = ture and searchMode = ‘containsignorecase’.�
    Now I start typeing the word May the selectionlog div shows as ‘Maybank-SGD’

    Please help me out.
    Thanks – Gokul


    gokul
    Participant

    Hai There,

    I have have one small update for the above issue.

    Just now I tried with autocomplete: false its working as expected.

    But whenever I used autocomplete: true I got the same issue.

    Please help me out.

    Thanks,
    – Gokul


    Peter Stoev
    Keymaster

    Hi Gokul,

    How do you select the item in autoComplete mode? – with mouse click, pressing up/down arrow or by pressing the “Enter” key.

    Looking forward to your reply.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com


    gokul
    Participant

    Hai Peter,

    I tried mouse click and ‘Enter’ key. But I am facing the same issue.

    Thanks,
    Gokul


    Peter Stoev
    Keymaster

    I’ve tested your scenario and confirm that there’s an issue when auto-complete is true. I’ll create a new work item about it and we’ll resolve it in a future version of jQWidgets. Thank you for the provided feedback!

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com


    shimmoril
    Participant

    Has this bug been fixed? We’d like to use the combo box, but we require the auto-complete functionality.


    Peter Stoev
    Keymaster

    Hi shimmoril,

    There’s online demo which demonstrates the auto-complete functionality of jqxComboBox: remotesearch.htm.

    With local source is: settings.htm.

    If you want to keep track what is fixed and what is not, visit: releasehistory.htm.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com


    shimmoril
    Participant

    Yes, I’ve viewed the demo, but if the bug is still present, it will not work for our situation.

    I’ve checked the release history, and I can’t see any items regarding the combo box and auto-complete for releases after Aug 6 (ie. when you last posted in this thread). Please state whether the bug is fixed or not as of the latest release.


    Peter Stoev
    Keymaster

    Hi shimmoril,

    As far as I know, the reported issue in this topic is resolved. At least I can’t reproduce it. That’s why I pointed you to our online samples.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.