jQWidgets Forums

jQuery UI Widgets Forums Plugins Data Adapter How dataAdapter works?

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • How dataAdapter works? #65393

    raj
    Participant

    Hi,

    I’ve a doubt, I’m sending a request to the server with source but sometimes I’m getting the response and sometimes it is not.

    FYI, I do data formatting in loadComplete callback method.

    Does the dataAdapter wait till it gets the response from server or terminates after sometime?

    var dataAdapter = new $.jqx.dataAdapter(source,{
        loadComplete: function (records) {
            //Data formatting logic goes here
        }
    });
    
    // perform data binding.
    dataAdapter.dataBind();

    (or)

    is it possible to trigger the dataAdapter call again, if the server response is empty?

    Can anyone suggest me a solution?

    Cheers,
    Raj

    How dataAdapter works? #65401

    Peter Stoev
    Keymaster

    Hi Raj,

    How dataAdapter works is documented on this page: http://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxdataadapter/jquery-data-adapter.htm. It does not way for anything. It makes Ajax call and calls appropriate functions depending on whether the call is success or error.

    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.