jQWidgets Forums

jQuery UI Widgets Forums Lists ComboBox Remote search on open

This topic contains 2 replies, has 3 voices, and was last updated by  taskmate 8 years, 10 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Remote search on open #84898

    Bartel
    Participant

    Hi

    Is there an example to populate the combobox with remote data only when the user click on the magnifying glass ?

    I was able to
    1. Change the icon
    2. Call the daCustomers.dataBind() in the combobox on(‘open’) event.
    3. Set parameters in the datasource processData function.
    4. Refresh the Combobox in the datasource loadComplete with $(“#cboCustomers”).source = daCustomers;

    Questions
    1. Is teh open event the correct event to use ?
    2. Must the datasource async: false ?
    3. Is there an example that can point me in the right direction ?

    Kind regards

    Remote search on open #84904

    admin
    Keymaster

    Hi Bartel,

    We have remote search example with Combo Box on the Combo Box’s demos page. This is all we have about remote search.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    Remote search on open #85017

    taskmate
    Participant

    Hi

    I am a user with small experience but have used Combo Box quite a bit. This could be a reason of not being able to give a absolutely correct answer.

    1) Populating on Open
    a) This will lead to unnecessary trip to data server as same query will be fired every time the combobox opens. The open is fired when user either clicks on image or gets focus.
    b) The same result can be achieved by loading the items on document ready ( Just in case you are not getting the items on ready, you could try to call it with settimeOut();
    c) I feel that calling the of search is good with 3 charector lenght.
    d) Recommendation : When search fires check in the list of items if the items is present. If yes donot fire the server code

    Regards

    Sanjay

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

You must be logged in to reply to this topic.