jQWidgets Forums

jQuery UI Widgets Forums Grid Load Groups on demand

Tagged: , ,

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Load Groups on demand #18437

    pit007
    Member

    Hi,

    I would like to use the Grid with a very large dataset (70 millon records).
    Therefore I do server side grouping and display the groups initially ony.
    I do also work with subgroups, which works fine too.

    Now finally (after drill down through a heirarchy of two or three groups) I’d like to
    expand the final group and load the actual data records associated with the selected groups.
    I catch the “groupexpand” event of the grid, save selected groups in a global variable
    and upon “processdata” I manipulate the data to include the groups I need.
    The database executes the query and returns the exact same dataset as originally plus
    the selected detail rows.
    My questions is: how to expand the correct rows in the grid? The “expandgroup” call seems to
    expand and collapse the rows and that’s it. How to keep them open? And how can I address
    the correct row to expand? Since there is one parameter to the expandgroup call?

    Thanks for your help,
    Peter

    Load Groups on demand #18440

    Peter Stoev
    Keymaster

    Hi pit007,

    The available Grouping API allows you to expand or collapse only root groups by passing the row’s index to the “expandgroup” or “collapsegroup” methods. Another option is to expand or collapse all groups by using the “expandallgroups” or “collapseallgroups” methods.

    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.