jQWidgets Forums

jQuery UI Widgets Forums Plugins Data Adapter multiple calls to server

This topic contains 4 replies, has 3 voices, and was last updated by  defyent 5 years ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • multiple calls to server #111607

    defyent
    Participant

    Hello,

    I have multiple drop down lists which share a json dataadapter, and it seems that a connection is made to my server for every instance of each drop down list, is this correct? If I have 10 drop down lists sharing a single dataadapter to populate their lists, the script connects to my server 10 times, adding huge amounts of overhead. Is there a way I can prevent this from happening? Thank you.

    multiple calls to server #111629

    Hristo
    Participant

    Hello defyent,

    If you make specific (“custom”) widgets for each one cell then it is possible to have such a case.
    It is difficult to guess without an example.
    Please, provide us with more details about your case.
    One jseditor/jsfiddle example will be better.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    https://www.jqwidgets.com

    multiple calls to server #111784

    defyent
    Participant

    Sorry it is hard to provide an example since the software is so integrated, in our system. But You mentioned cells and custom widgets, These are simple drop downs in a form, not in a datatable. Very basic form, with 10 drop down lists, but all sharing the same contents. Loading the page makes 10 calls to the drop down list json source.

    multiple calls to server #111793

    admin
    Keymaster

    Hi defyent,

    My suggestion is only one adapter to handle your client-server connections and create new dataAdapters with the data loaded from the dataAdapter which communicates with your data server.

    Regards,
    Peter

    multiple calls to server #111797

    defyent
    Participant

    I only had one adapter loaded, it seems that changing the source: in my dropdownlist from dataAdapter to dataAdapter.records has resolved the issue.

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

You must be logged in to reply to this topic.