jQWidgets Forums

jQuery UI Widgets Forums Lists ComboBox Remote Search problem

This topic contains 5 replies, has 3 voices, and was last updated by  rani 11 years, 3 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • Remote Search problem #47827

    arikbd
    Participant

    Hi,

    I’m having a problem with remote search.
    I define remoteAutoComplete: true and minLength: 2 I have a function in the combo search that calls dataAdapter.dataBind() and in the dataAdapter I set formatData function that set a start with field that is sent to the json WEB service

    The problem is that when the combo is loaded all the data is loaded to the combo, then when the user type search string two characters and more, the list is updated correctly, but than when the user click backspace in the search field so it is left with only one character the combo search function is not called and as result data adapter dataBind is also not called and I’m left with empty list and not returning to the complete list as I expected.

    Is there a way to do it (This happens also in your example)? even when I change the minLength to 1 or 0 this does not work

    Thanks,

    Arik

    Remote Search problem #47833

    Peter Stoev
    Keymaster

    Hi Arik,

    The minLength property’s purpose is exactly that. It does not perform search unless the entered characters are more than the minLength’s value. Unfortunately, we cannot offer a different behavior at present.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Remote Search problem #47834

    arikbd
    Participant

    Peter,

    Thanks for your fast replay.
    I understand this is the purpose and it is OK, but what can I do if I delete characters from the search text and now I have no event to reflect that change and refresh the list.
    Is there event that is fired when the search text is changed?

    Thanks,

    Arik

    Remote Search problem #47838

    Peter Stoev
    Keymaster

    Hi Arik,

    I suppose that you can bind to the keyup event.

    $("#combobox input").keyup(function()
    {
        // your code here.
    });
    

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Remote Search problem #49128

    rani
    Participant

    Hi,
    While using remote search, matched items are not highlighting.
    But using the same combo box with local data search, it is automatically highlighting the matched records.
    In your demos also same, matched records are not highlighting.

    http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxcombobox/index.htm?%28ui-sunny%29#demos/jqxcombobox/remotesearch.htm

    Can you give me a solution?

    Regards,
    Rani

    Remote Search problem #49716

    rani
    Participant

    Hi,
    May I have the solution/any idea?

    Regards,
    Rani

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

You must be logged in to reply to this topic.