jQWidgets Forums

jQuery UI Widgets Forums Lists ComboBox Lazy loading combobox

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Lazy loading combobox #62882

    Epicycle
    Participant

    Hello,

    is it possible to configure the combobox so it binds the data on the first time its beeing opened?
    I am using a json data adapter as remote source.

    Best regards
    Epicycle

    Lazy loading combobox #62885

    Peter Stoev
    Keymaster

    Hi Epicycle,

    You can take a look at this example: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxcombobox/remotesearch.htm?arctic

    Best Regards,
    Peter Stoev

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

    Lazy loading combobox #62889

    Epicycle
    Participant

    Thanks Peter,

    does this mean there is no inbuild way to do this? Like a parameter or something lazy:true?
    The example shows an empty dropdown as long as there is no search text provided.
    I was looking for a way to delay the databinding until its needed i.e. someone is trying to open it for the first time.
    So if i got that right, correct me if i am wrong, i have to set remoteAutoComplete to true and implement the logic by myself (like load the data only if it hasnt been loaded before, observe the click/focus events etc?).

    Best regards
    Epicycle

    Lazy loading combobox #62890

    Peter Stoev
    Keymaster

    Hi Epicycle,

    The functionality which you see on this sample is built-in. The data is loaded on demand when the user searches. I don’t see any code for handling click, focus or other events in our example.

    Best Regards,
    Peter Stoev

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

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

You must be logged in to reply to this topic.