jQWidgets Forums

jQuery UI Widgets Forums Plugins Data Adapter Sharing one DataAdapter

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 10 years, 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Sharing one DataAdapter #60796

    binfch
    Participant

    Hello

    Just a small question.

    I have 3 controls (DropDownLists) on a page all showing a reference list of countries. So I’d like to share one single DataSource/DataAdapter for all 3 controls.

    Works perfectly but 3 requests to the server are made -> Is that the way to go or am I doing something wrong?

    Thanks & cheers,
    Peter

    Sharing one DataAdapter #60801

    Peter Stoev
    Keymaster

    Hi Peter,

    You cannot share them. You should use 1 adapter which makes server requests and feed the others with data if you want such approach. Each widget should have its own adapter.

    Best Regards,
    Peter Stoev

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

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

You must be logged in to reply to this topic.