jQWidgets Forums

jQuery UI Widgets Forums React Update Parent Data and nested grid data

This topic contains 1 reply, has 2 voices, and was last updated by  admin 6 years ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • ganesh
    Participant

    Hi there,

    I have two grid on same page (with different data source and adapter). Lets say Grid-A and Grid-B, when I clicked on cell from Grid-A, Grid-B source is updated with new data and Grid-B is refreshed.
    So far so good, However my Grid-B has nested grid in it. When Grid-B data is refreshed based on action on Grid-A, nested grid from Grid-B does not populate correct data.

    I would like to update nested grid data as well as parent data.

    Any suggestions in this regard are greatly appreciated.

    Thanks
    Ganesh


    admin
    Keymaster

    Hi Ganesh,

    Please, take a look at the Nested Grids demo available here: https://www.jqwidgets.com/react/react-grid/. It shows how to implement Nested Grid scenario with jqxGrid. The ‘initrowdetails’ callback function is called just once when you create the nested grid. From that point, within the callback function, the updates, data source, etc. of the nested grid depends only on the developer’s code. From my understanding, data changes of the Grid B should be detected and you should make updates to its nested grid. The ‘bindingcomplete’ event of the Grid could be useful here. It is raised when the data is changed i.e when the datasource is changed, you can make the necessary updates.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    https://www.jqwidgets.com

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

You must be logged in to reply to this topic.