jQuery UI Widgets Forums Grid Best Way to detect Grid Update

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Best Way to detect Grid Update #21824

    Benji6996
    Participant

    I have several grids within my site, some are virtual and some are local, but all have events that require the grid to update its content.

    I am using the ‘updatebounddata’ event to update and refresh the content within the grid, however, what I would also like is an event on the grid that detects when the grid has been refreshed/updated. Something to effectively run every time I run ‘updatebounddata’.

    I was originally using ‘ready’, but then realized this only fired when the grid is initialised…

    Something like this would be perfect:

    $("#grid").jqxGrid({	
    source: dataAdapter,
    onUpdate: function(){
    // Do some stuff here
    }
    });

    Are there any existing events that I have missed from the documentation?

    I am aware that I could simply run my function when I call the ‘updateboundata’, but this will not be called when the grid is first built…

    I have also looked at the ‘rendered’ event, is this the one I should use?

    • This topic was modified 11 years ago by  Benji6996.
    Best Way to detect Grid Update #21863

    Peter Stoev
    Keymaster

    Hi,

    The Grid’s bindingcomplete event is raised when the data is updated.

    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.