jQWidgets Forums

jQuery UI Widgets Forums Grid jqxgrid jsonp and observable array

Tagged: ,

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • jqxgrid jsonp and observable array #79636

    jonno
    Participant

    Hi Folks,

    I want to show changes to data on the jqxGrid at an arbitrary interval, i.e. every 5 seconds.

    The entire dataset is retrieved remotely using ajax jsonp.
    This data is to update the jqxgrid and highlight changes.

    I checked out observable array but i’m just not sure how to do it.
    I’ve checked the examples on this site, the methods don’t seem clear to me.

    Any help greatly appreciated

    J

    jqxgrid jsonp and observable array #79637

    Peter Stoev
    Keymaster

    Hi jonno,

    jsonp and observable array are different data sources which cannot be combined. If you want to update the Grid per interval use its updatebounddata which will make a new AJAX call to your JSONP data source and will update Grid’s data.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    jqxgrid jsonp and observable array #79638

    jonno
    Participant

    Hi Peter,

    I like the idea of detecting changes in the data for the grid to render where required.
    What data structures are required to use observable array?
    Could i continuously convert the json data into a local array for observable array to use?

    jqxgrid jsonp and observable array #79639

    Peter Stoev
    Keymaster

    Hi jonno,

    You can get the changes by binding to Grid events such as cellvaluechanged. It’s better to keep the things simple i.e bind the Grid to JSONP instead of binding something to JSONP, then converting that something to observable array and binding the Grid to observable array and then updating the server in some other format, but that is just an advice.

    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.