jQWidgets Forums

jQuery UI Widgets Forums Plugins Data Adapter multiple dataAdapter in one page

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • multiple dataAdapter in one page #64745

    claudegel
    Participant

    I need to build a page with one dropdownlist which is getting data from a php file that’s querying one mysql table and a grid that is getting his data from another php script that is querying another table with more field data to return

    is it possible to have more then one dataAdapter in one page ? if yes how to do it

    thanks,

    multiple dataAdapter in one page #64765

    Peter Stoev
    Keymaster

    Hi claudegel,

    There is no problem to create as many adapters as you wish. The process is the same as creating 1 adapter.

    Best Regards,
    Peter Stoev

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

    multiple dataAdapter in one page #64802

    claudegel
    Participant

    Ok, do I need to give a different var name and source name for each one like
    var dataAdapter = new $.jqx.dataAdapter(Source);
    var dataAdapter2 = new $.jqx.dataAdapter(Source2);

    so they can have a different behavior if needed ?

    and to activate them I just need to include them in a event driven function to togle them on/off ?

    Thanks,

    multiple dataAdapter in one page #64827

    Peter Stoev
    Keymaster

    Hi claudegel,

    If you want, you can reuse a “source” object, but it depends on your app’s logic. If you want the adapter to be filled with data, you have to call its “dataBind” method – dataAdapter.dataBind();

    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.