jQuery UI Widgets › Forums › General Discussions › Lists › ComboBox › Remote Search problem
Tagged: combobox, remoteSearch, search
This topic contains 5 replies, has 3 voices, and was last updated by rani 12 years, 8 months ago.
-
AuthorRemote Search problem Posts
-
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 serviceThe 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
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 StoevjQWidgets Team
http://www.jqwidgets.comPeter,
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
Hi Arik,
I suppose that you can bind to the keyup event.
$("#combobox input").keyup(function() { // your code here. });Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHi,
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.Can you give me a solution?
Regards,
RaniHi,
May I have the solution/any idea?Regards,
Rani -
AuthorPosts
You must be logged in to reply to this topic.