jQWidgets Forums

jQuery UI Widgets Forums Plugins Data Adapter autoBind & async

This topic contains 4 replies, has 2 voices, and was last updated by  GrantM 10 years, 10 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • autoBind & async #58409

    GrantM
    Participant

    The information in the documentation doesnt explain the implications of these parameters.

    Firstly, how does async affect the dataAdapter? What does it sync with if set to true? I’ve tried setting it to true and false and it appears to make no difference.

    I also tried the same with autoBind and it appeared that nothing was affected.

    Im just trying to understand what these settings actually do.

    Thanks

    autoBind & async #58413

    Peter Stoev
    Keymaster

    Hi GrantM,

    The difference becomes obvious when you bind to a remote data source. If async is false, the Ajax call is synchronous. async: true is by default. autoBind is also something which is obvious – performs auto bind operation after the dataAdapter is created. Otherwise, it does not bind it automatically i.e its dataBind method is not called on initialization.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    autoBind & async #58414

    GrantM
    Participant

    Thanks for the quick response but im still none the wiser as to what these actually do.

    What difference does it make to retrieving the data for the chart? By remote, do you mean from another server or on a seperate file?

    What does “binding” actually do in simplistic terms? What is being binded with what? and is it integral to the chart displaying correctly? what does it effect? If it doesnt do it automatically, why does it need to be done at all?

    Sorry for my stupidity but I dont have any idea how these effect anything. true or false, my charts load the same.

    autoBind & async #58426

    Peter Stoev
    Keymaster

    Hi GrantM,

    1. server or separate file is remote. The data is not local, right.
    2. If you want to learn what binding is, look at: http://en.wikipedia.org/wiki/Data_binding.
    3. The dataAdapter is explained in details on its documentation page. If you would like to learn it, you may look there – http://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxdataadapter/jquery-data-adapter.htm. You can also learn from the examples in the Demo page.
    4. To learn what AJAX is, look http://en.wikipedia.org/wiki/Ajax_(programming).

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    autoBind & async #58506

    GrantM
    Participant

    This hasnt answered my questions but thanks anyway.

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

You must be logged in to reply to this topic.