jQWidgets Forums

jQuery UI Widgets Forums Grid Get data from subgrid in Nested Grid

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Get data from subgrid in Nested Grid #30127

    tamaraOnt
    Member

    I have a nested grid with the information in the “main” row and information in the rows of the subgrid.

    I have a button outside the grid and I want to get all de information of the grid (main rows and rows in subgrids)

    How can I do that?

    To get the rows of the main grid I’m using:

    var rows = $(‘#gridDetalle’).jqxGrid(‘getrows’);

    But I don’ have any idea about how to get the information in the subgrids.

    Notice that the subgrid are not expanded.

    Thanks

    Get data from subgrid in Nested Grid #30130

    Peter Stoev
    Keymaster

    Hi tamaraOnt,

    If a sub grid is not expanded, it is very possible that the sub grid is not initialized yet and you will not be able to get any rows. Sub Grids are initialized when you expand a row for a first time. In the “initrowdetails” callback, you can then save the ID of the sub grid in your custom variable or array and use it later to select it by ID and call its “getrows” method.

    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.